Skip to content

Commit 5d7d3f7

Browse files
committed
fix missing owners
1 parent d6e0fbd commit 5d7d3f7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/sour-bags-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: inherit ownerlessness when creating child proxies

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function proxy(value, immutable = true, owners) {
8484
? // @ts-expect-error
8585
new Set([current_component_context.function])
8686
: null
87-
: new Set(owners);
87+
: owners && new Set(owners);
8888
}
8989

9090
return proxy;

0 commit comments

Comments
 (0)