Skip to content

Commit f04f22b

Browse files
committed
tune
1 parent 3117bb6 commit f04f22b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -959,13 +959,11 @@ export function get(signal) {
959959
var derived = /** @type {Derived} */ (signal);
960960
var parent = derived.parent;
961961

962-
if (parent !== null) {
962+
if (parent !== null && (parent.f & UNOWNED) === 0) {
963963
// If the derived is owned by another derived then mark it as unowned
964964
// as the derived value might have been referenced in a different context
965965
// since and thus its parent might not be its true owner anymore
966-
if ((parent.f & UNOWNED) === 0) {
967-
derived.f ^= UNOWNED;
968-
}
966+
derived.f ^= UNOWNED;
969967
}
970968
}
971969

0 commit comments

Comments
 (0)