Skip to content

Commit 514699a

Browse files
committed
reset parent if necessary
1 parent d075eb9 commit 514699a

File tree

1 file changed

+2
-0
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+2
-0
lines changed

packages/svelte/src/internal/client/reactivity/effects.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ function create_effect(type, fn, sync, push = true) {
152152
}
153153

154154
if (e !== null) {
155+
e.parent = parent;
156+
155157
if (parent !== null) {
156158
push_effect(e, parent);
157159
}

0 commit comments

Comments
 (0)