File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -300,15 +300,15 @@ function mark_reactions(signal, status) {
300300 continue ;
301301 }
302302
303- if ( status === DIRTY || ( flags & DIRTY ) === 0 ) {
304- // don't make a DIRTY signal MAYBE_DIRTY
305- set_signal_status ( reaction , status ) ;
306- }
303+ set_signal_status ( reaction , status ) ;
307304
308- if ( ( flags & DERIVED ) !== 0 ) {
309- mark_reactions ( /** @type {Derived } */ ( reaction ) , MAYBE_DIRTY ) ;
310- } else {
311- schedule_effect ( /** @type {Effect } */ ( reaction ) ) ;
305+ // If the signal a) was previously clean or b) is an unowned derived, then mark it
306+ if ( ( flags & ( CLEAN | UNOWNED ) ) !== 0 ) {
307+ if ( ( flags & DERIVED ) !== 0 ) {
308+ mark_reactions ( /** @type {Derived } */ ( reaction ) , MAYBE_DIRTY ) ;
309+ } else {
310+ schedule_effect ( /** @type {Effect } */ ( reaction ) ) ;
311+ }
312312 }
313313 }
314314}
You can’t perform that action at this time.
0 commit comments