fix missing owners

pull/10577/head
Rich Harris 3 years ago
parent d6e0fbd8ba
commit 5d7d3f7f14

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: inherit ownerlessness when creating child proxies

@ -84,7 +84,7 @@ export function proxy(value, immutable = true, owners) {
? // @ts-expect-error
new Set([current_component_context.function])
: null
: new Set(owners);
: owners && new Set(owners);
}
return proxy;

Loading…
Cancel
Save