pull/9617/head
Dominic Gannaway 3 years ago
parent 6214326535
commit 73ed7e2fd1

@ -1232,13 +1232,16 @@ export function bind_this(element_or_component, update, binding) {
untrack(() => {
update(element_or_component);
render_effect(() => () => {
managed_render_effect(() => {
// Defer to the next tick so that all updates can be reconciled first.
render_effect(() => {
untrack(() => {
if (!is_signal(binding) || binding.v === element_or_component) {
update(null);
}
});
});
});
});
}
/**

@ -945,6 +945,7 @@ function mark_signal_consumers(signal, to_status, force_schedule) {
// effect.
if ((flags & CLEAN) !== 0 || (dirty && unowned)) {
if ((consumer.f & IS_EFFECT) !== 0) {
debugger
schedule_effect(/** @type {import('./types.js').EffectSignal} */ (consumer), false);
} else {
mark_signal_consumers(consumer, MAYBE_DIRTY, force_schedule);

Loading…
Cancel
Save