Skip to content

Commit 00107cb

Browse files
committed
fix effect bug
1 parent 7907d1d commit 00107cb

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ function create_effect(type, fn, sync, push = true) {
9999
}
100100
}
101101

102+
if (parent_effect !== null && (parent_effect.f & INERT) !== 0) {
103+
type |= INERT;
104+
}
105+
102106
/** @type {Effect} */
103107
var effect = {
104108
ctx: component_context,

0 commit comments

Comments
 (0)