We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f73a0 commit dbf2b4cCopy full SHA for dbf2b4c
packages/svelte/src/internal/client/proxy.js
@@ -300,11 +300,10 @@ export function proxy(value, onchange) {
300
// object property before writing to that property.
301
if (s === undefined) {
302
if (!has || get_descriptor(target, prop)?.writable) {
303
- const opt = onchange;
304
- s = with_parent(() => source(undefined, opt, stack));
+ s = with_parent(() => source(undefined, onchange, stack));
305
set(
306
s,
307
- with_parent(() => proxy(value, opt))
+ with_parent(() => proxy(value, onchange))
308
);
309
sources.set(prop, s);
310
}
0 commit comments