Skip to content

Commit db46ad7

Browse files
committed
fix
1 parent 45a67ee commit db46ad7

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,13 @@ export function legacy_pre_effect(deps, fn, line, column) {
293293
if (DEV && location) {
294294
var implicit_deps = capture_signals(() => untrack(fn));
295295

296-
for (const signal of implicit_deps) {
296+
for (var signal of implicit_deps) {
297297
if (!explicit_deps.has(signal)) {
298298
w.reactive_declaration_non_reactive_property(/** @type {string} */ (location));
299299
}
300300
}
301+
} else {
302+
untrack(fn);
301303
}
302304
});
303305
}

0 commit comments

Comments
 (0)