File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -610,9 +610,10 @@ export function get(signal) {
610610 } else if ( is_derived ) {
611611 derived = /** @type {Derived } */ ( signal ) ;
612612
613+ var should_reconnect = is_updating_effect && effect_tracking ( ) && ( derived . f & CONNECTED ) === 0 ;
614+
613615 if ( batch_values ?. has ( derived ) ) {
614- // TODO DRY out
615- if ( is_updating_effect && effect_tracking ( ) && ( derived . f & CONNECTED ) === 0 ) {
616+ if ( should_reconnect ) {
616617 reconnect ( derived ) ;
617618 }
618619
@@ -623,7 +624,7 @@ export function get(signal) {
623624 update_derived ( derived ) ;
624625 }
625626
626- if ( is_updating_effect && effect_tracking ( ) && ( derived . f & CONNECTED ) === 0 ) {
627+ if ( should_reconnect ) {
627628 reconnect ( derived ) ;
628629 }
629630 } else if ( batch_values ?. has ( signal ) ) {
You can’t perform that action at this time.
0 commit comments