File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,6 @@ function remove_reaction(signal, dependency) {
419
419
export function remove_reactions ( signal , start_index ) {
420
420
const dependencies = signal . deps ;
421
421
if ( dependencies !== null ) {
422
- var active_dependencies = start_index === 0 ? null : dependencies . slice ( 0 , start_index ) ;
423
422
var visited = new Set ( ) ;
424
423
let i ;
425
424
for ( i = start_index ; i < dependencies . length ; i ++ ) {
@@ -428,10 +427,7 @@ export function remove_reactions(signal, start_index) {
428
427
continue ;
429
428
}
430
429
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 ) ;
435
431
}
436
432
}
437
433
}
You can’t perform that action at this time.
0 commit comments