Skip to content

Commit 22ae61b

Browse files
committed
comment
1 parent 6281836 commit 22ae61b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,8 @@ export function get(signal) {
770770
var target = derived;
771771

772772
while (parent !== null) {
773+
// Attach the derived to the nearest parent effect, if there are deriveds
774+
// in between then we also need to attach them too
773775
if ((parent.f & DERIVED) !== 0) {
774776
var parent_derived = /** @type {Derived} */ (parent);
775777

0 commit comments

Comments
 (0)