File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
12
12
SignalFlags ,
13
13
WrappedSignalFlags ,
14
14
} from '../types' ;
15
- import { triggerEffects } from '../utils' ;
15
+ import { scheduleEffects } from '../utils' ;
16
16
import { SignalImpl } from './signal-impl' ;
17
17
18
18
export class WrappedSignalImpl < T > extends SignalImpl < T > implements BackRef {
@@ -57,7 +57,7 @@ export class WrappedSignalImpl<T> extends SignalImpl<T> implements BackRef {
57
57
// if the computation not failed, we can run the effects directly
58
58
if ( this . $flags$ & SignalFlags . RUN_EFFECTS ) {
59
59
this . $flags$ &= ~ SignalFlags . RUN_EFFECTS ;
60
- triggerEffects ( this . $container$ , this , this . $effects$ ) ;
60
+ scheduleEffects ( this . $container$ , this , this . $effects$ ) ;
61
61
}
62
62
}
63
63
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export const addQrlToSerializationCtx = (
84
84
}
85
85
} ;
86
86
87
- export const triggerEffects = (
87
+ export const scheduleEffects = (
88
88
container : Container | null ,
89
89
signal : SignalImpl | StoreTarget ,
90
90
effects : Set < EffectSubscription > | null
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ import {
95
95
type EffectSubscription ,
96
96
type StoreTarget ,
97
97
} from '../reactive-primitives/types' ;
98
- import { triggerEffects } from '../reactive-primitives/utils' ;
98
+ import { scheduleEffects } from '../reactive-primitives/utils' ;
99
99
import { type ISsrNode , type SSRContainer } from '../ssr/ssr-types' ;
100
100
import { runResource , type ResourceDescriptor } from '../use/use-resource' ;
101
101
import {
@@ -738,13 +738,13 @@ This is often caused by modifying a signal in an already rendered component duri
738
738
( ) => {
739
739
if ( ( target as ComputedSignalImpl < unknown > ) . $flags$ & SignalFlags . RUN_EFFECTS ) {
740
740
( target as ComputedSignalImpl < unknown > ) . $flags$ &= ~ SignalFlags . RUN_EFFECTS ;
741
- return retryOnPromise ( ( ) => triggerEffects ( container , target , effects ) ) ;
741
+ return retryOnPromise ( ( ) => scheduleEffects ( container , target , effects ) ) ;
742
742
}
743
743
}
744
744
) as ValueOrPromise < ChoreReturnValue < ChoreType . RECOMPUTE_AND_SCHEDULE_EFFECTS > > ;
745
745
} else {
746
746
returnValue = retryOnPromise ( ( ) => {
747
- triggerEffects ( container , target , effects ) ;
747
+ scheduleEffects ( container , target , effects ) ;
748
748
} ) as ValueOrPromise < ChoreReturnValue < ChoreType . RECOMPUTE_AND_SCHEDULE_EFFECTS > > ;
749
749
}
750
750
}
You can’t perform that action at this time.
0 commit comments