Skip to content

Commit 1610602

Browse files
committed
tune
1 parent 3aeb42a commit 1610602

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ function remove_reaction(signal, dependency) {
419419
export function remove_reactions(signal, start_index) {
420420
const dependencies = signal.deps;
421421
if (dependencies !== null) {
422-
var active_dependencies = start_index === 0 ? null : dependencies.slice(0, start_index);
423422
var visited = new Set();
424423
let i;
425424
for (i = start_index; i < dependencies.length; i++) {
@@ -428,10 +427,7 @@ export function remove_reactions(signal, start_index) {
428427
continue;
429428
}
430429
visited.add(dependency);
431-
// Avoid removing a reaction if we know that it is active (start_index will not be 0)
432-
if (active_dependencies === null || !active_dependencies.includes(dependency)) {
433-
remove_reaction(signal, dependency);
434-
}
430+
remove_reaction(signal, dependency);
435431
}
436432
}
437433
}

0 commit comments

Comments
 (0)