Skip to content

Commit 2f4974c

Browse files
committed
try this
1 parent cb6c018 commit 2f4974c

File tree

1 file changed

+3
-4
lines changed
  • packages/svelte/src/internal/client

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export function proxy(value) {
9696
let updating = false;
9797
/** @param {string} new_path */
9898
function update_path(new_path) {
99-
console.log({ new_path, updating, stack: new Error().stack });
10099
if (updating) return;
101100
updating = true;
102101
path = new_path;
@@ -288,13 +287,13 @@ export function proxy(value) {
288287
if (s === undefined) {
289288
if (!has || get_descriptor(target, prop)?.writable) {
290289
s = with_parent(() => source(undefined, stack));
291-
set(s, proxy(value));
292-
293-
sources.set(prop, s);
294290

295291
if (DEV) {
296292
tag(s, get_label(path, prop));
297293
}
294+
set(s, proxy(value));
295+
296+
sources.set(prop, s);
298297
}
299298
} else {
300299
has = s.v !== UNINITIALIZED;

0 commit comments

Comments
 (0)