pull/10958/head
Dominic Gannaway 7 months ago
parent 6dc12fb69d
commit bc980083ea

@ -1,5 +1,5 @@
import { STATE_SYMBOL } from '../../../constants.js';
import { bind_effect, destroy_effect, effect, render_effect } from '../../../reactivity/effects.js';
import { bind_effect, destroy_effect, effect, pre_effect, render_effect } from '../../../reactivity/effects.js';
import { untrack } from '../../../runtime.js';
/**
@ -29,7 +29,7 @@ export function bind_this(element_or_component, update, get_value, get_parts) {
/** @type {unknown[]} */
var parts;
render_effect(() => {
pre_effect(() => {
old_parts = parts;
// We only track changes to the parts, not the value itself to avoid unnecessary reruns.
parts = get_parts?.() || [];

@ -604,7 +604,7 @@ function collect_effects_recursively(
);
} else {
if ((flags & BIND_EFFECT) !== 0) {
render.push(child);
pre.push(child);
} else {
user.push(child);
}

Loading…
Cancel
Save