Skip to content

Commit 5892585

Browse files
committed
fix: improve bind:this support around proxyied state
1 parent 277dd65 commit 5892585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ export function bind_this(element_or_component, update, get_value, get_parts) {
13651365
const e = effect(() => {
13661366
old_parts = parts;
13671367
// We only track changes to the parts, not the value itself to avoid unnecessary reruns.
1368-
parts = get_parts?.() || (element_or_component ? [element_or_component] : []);
1368+
parts = get_parts?.() || [];
13691369

13701370
untrack(() => {
13711371
if (element_or_component !== get_value(...parts)) {

0 commit comments

Comments
 (0)