fix effect bug

aaa
Dominic Gannaway 8 months ago
parent 7907d1d04a
commit 00107cbfcf

@ -99,6 +99,10 @@ function create_effect(type, fn, sync, push = true) {
} }
} }
if (parent_effect !== null && (parent_effect.f & INERT) !== 0) {
type |= INERT;
}
/** @type {Effect} */ /** @type {Effect} */
var effect = { var effect = {
ctx: component_context, ctx: component_context,

Loading…
Cancel
Save