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 bde0252 commit c4182f5Copy full SHA for c4182f5
packages/svelte/src/internal/client/reactivity/sources.js
@@ -186,10 +186,7 @@ export function internal_set(source, value) {
186
187
if (typeof old_value === 'object' && old_value != null && source.o) {
188
// @ts-ignore
189
- const remove = old_value[PROXY_ONCHANGE_SYMBOL];
190
- if (remove && typeof remove === 'function') {
191
- remove(source.o, true);
192
- }
+ old_value[PROXY_ONCHANGE_SYMBOL]?.(source.o, true);
193
}
194
195
if (is_destroying_effect) {
0 commit comments