Skip to content

Commit d2487f8

Browse files
committed
fix
1 parent 4e6e8a4 commit d2487f8

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

packages/svelte/src/internal/client/reactivity/sources.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
} from '#client/constants';
3232
import * as e from '../errors.js';
3333
import { legacy_mode_flag, tracing_mode_flag } from '../../flags/index.js';
34-
import { get_stack } from '../dev/tracing.js';
34+
import { get_stack, tag_proxy } from '../dev/tracing.js';
3535
import { component_context, is_runes } from '../context.js';
3636
import { proxy } from '../proxy.js';
3737
import { execute_derived } from './deriveds.js';
@@ -139,7 +139,11 @@ export function set(source, value, should_proxy = false) {
139139
e.state_unsafe_mutation();
140140
}
141141

142-
let new_value = should_proxy ? proxy(value, DEV ? source.label : undefined) : value;
142+
let new_value = should_proxy ? proxy(value) : value;
143+
144+
if (DEV && should_proxy) {
145+
tag_proxy(new_value, /** @type {string} */ (source.label));
146+
}
143147

144148
return internal_set(source, new_value);
145149
}

0 commit comments

Comments
 (0)