Skip to content

Commit 0e57669

Browse files
committed
cosmetic tweak
1 parent c4182f5 commit 0e57669

File tree

1 file changed

+2
-0
lines changed
  • packages/svelte/src/internal/client

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ export function proxy(value, onchange) {
141141
set(ls, n);
142142
}
143143
}
144+
144145
// when we delete a property if the source is a proxy we remove the current onchange from
145146
// the proxy `onchanges` so that it doesn't trigger it anymore
146147
if (typeof s.v === 'object' && s.v !== null && STATE_SYMBOL in s.v) {
147148
s.v[PROXY_ONCHANGE_SYMBOL](onchange, true);
148149
}
150+
149151
set(s, UNINITIALIZED);
150152
update_version(version);
151153
}

0 commit comments

Comments
 (0)