chore: do not emit invalidate_effect for select synchronization (#9830)

in runes mode
pull/9832/head
gtmnayan 2 years ago committed by GitHub
parent 384e3a42b3
commit c9c2bde5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -227,10 +227,8 @@ function setup_select_synchronization(value_binding, context) {
}
}
const to_invalidate = context.state.analysis.runes
? b.empty
: b.stmt(
b.call(
if (!context.state.analysis.runes) {
const invalidator = b.call(
'$.invalidate_inner_signals',
b.thunk(
b.block(
@ -240,8 +238,8 @@ function setup_select_synchronization(value_binding, context) {
})
)
)
)
);
context.state.init.push(
b.stmt(
b.call(
@ -251,12 +249,13 @@ function setup_select_synchronization(value_binding, context) {
b.stmt(
/** @type {import('estree').Expression} */ (context.visit(value_binding.expression))
),
to_invalidate
b.stmt(invalidator)
])
)
)
)
);
}
}
/**

Loading…
Cancel
Save