File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ import {
3030 INSPECT_EFFECT ,
3131 UNOWNED ,
3232 MAYBE_DIRTY ,
33- BLOCK_EFFECT
33+ BLOCK_EFFECT ,
34+ LAZY_EFFECT
3435} from '../constants.js' ;
3536import * as e from '../errors.js' ;
3637import { legacy_mode_flag } from '../../flags/index.js' ;
@@ -282,9 +283,8 @@ function mark_reactions(signal, status) {
282283 var effect = /** @type {Effect } */ ( reaction ) ;
283284 schedule_effect ( effect ) ;
284285
285- // Mark any linked deriveds as dirty
286- var deriveds = effect . deriveds ;
287- if ( deriveds !== null ) {
286+ if ( ( flags & LAZY_EFFECT ) !== 0 ) {
287+ var deriveds = /** @type {Derived[] } */ ( effect . deriveds ) ;
288288 for ( let i = 0 ; i < deriveds . length ; i ++ ) {
289289 var derived = deriveds [ i ] ;
290290 if ( derived . parent !== effect ) {
You can’t perform that action at this time.
0 commit comments