Update packages/svelte/src/internal/client/dom/elements/bindings/this.js

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/10958/head
Dominic Gannaway 7 months ago committed by GitHub
parent a6ca3cfbf9
commit 80333cfecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -29,7 +29,7 @@ export function bind_this(element_or_component, update, get_value, get_parts) {
/** @type {unknown[]} */
var parts;
pre_effect(() => {
render_effect(() => {
old_parts = parts;
// We only track changes to the parts, not the value itself to avoid unnecessary reruns.
parts = get_parts?.() || [];

Loading…
Cancel
Save