File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable */
2
- // Ported from https://github.com/stackblitz/alien-signals/blob/v1.0.2 /src/system.ts
2
+ // Ported from https://github.com/stackblitz/alien-signals/blob/v1.0.3 /src/system.ts
3
3
import type { ComputedRefImpl as Computed } from './computed.js'
4
4
import type { ReactiveEffect as Effect } from './effect.js'
5
5
@@ -194,22 +194,18 @@ export function processComputedUpdate(
194
194
computed : Computed ,
195
195
flags : SubscriberFlags ,
196
196
) : void {
197
- if ( flags & SubscriberFlags . Dirty ) {
198
- if ( computed . update ( ) ) {
199
- const subs = computed . subs
200
- if ( subs !== undefined ) {
201
- shallowPropagate ( subs )
202
- }
203
- }
204
- } else if ( checkDirty ( computed . deps ! ) ) {
197
+ if (
198
+ flags & SubscriberFlags . Dirty ||
199
+ ( checkDirty ( computed . deps ! )
200
+ ? true
201
+ : ( ( computed . flags = flags & ~ SubscriberFlags . PendingComputed ) , false ) )
202
+ ) {
205
203
if ( computed . update ( ) ) {
206
204
const subs = computed . subs
207
205
if ( subs !== undefined ) {
208
206
shallowPropagate ( subs )
209
207
}
210
208
}
211
- } else {
212
- computed . flags = flags & ~ SubscriberFlags . PendingComputed
213
209
}
214
210
}
215
211
You can’t perform that action at this time.
0 commit comments