File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -198,12 +198,11 @@ export function check_dirtiness(reaction) {
198198 var i ;
199199 var dependency ;
200200 var is_disconnected = ( flags & DISCONNECTED ) !== 0 ;
201- var depedency_needs_linking =
202- is_disconnected || ( is_unowned && active_effect !== null && ! skip_reaction ) ;
201+ var is_unowned_connected = is_unowned && active_effect !== null && ! skip_reaction ;
203202
204- // If we are working with a disconnected or an unowned signal as part of an effect (due to !skip_reaction )
203+ // If we are working with a disconnected or an unowned signal that is now connected (due to an active effect )
205204 // then we need to re-connect the reaction to the dependency
206- if ( depedency_needs_linking ) {
205+ if ( is_disconnected || is_unowned_connected ) {
207206 for ( i = 0 ; i < dependencies . length ; i ++ ) {
208207 dependency = dependencies [ i ] ;
209208
You can’t perform that action at this time.
0 commit comments