File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ export function computed<T>(
48
48
const runner = effect ( getter , {
49
49
lazy : true ,
50
50
// mark effect as computed so that it gets priority during trigger
51
- computed : true ,
52
51
scheduler : ( ) => {
53
52
if ( ! dirty ) {
54
53
dirty = true
Original file line number Diff line number Diff line change @@ -177,16 +177,11 @@ export function trigger(
177
177
}
178
178
179
179
const effects = new Set < ReactiveEffect > ( )
180
- const computedRunners = new Set < ReactiveEffect > ( )
181
180
const add = ( effectsToAdd : Set < ReactiveEffect > | undefined ) => {
182
181
if ( effectsToAdd ) {
183
182
effectsToAdd . forEach ( effect => {
184
183
if ( effect !== activeEffect || ! shouldTrack ) {
185
- if ( effect . options . computed ) {
186
- computedRunners . add ( effect )
187
- } else {
188
- effects . add ( effect )
189
- }
184
+ effects . add ( effect )
190
185
} else {
191
186
// the effect mutated its own dependency during its execution.
192
187
// this can be caused by operations like foo.value++
@@ -245,8 +240,5 @@ export function trigger(
245
240
}
246
241
}
247
242
248
- // Important: computed effects must be run first so that computed getters
249
- // can be invalidated before any normal effects that depend on them are run.
250
- computedRunners . forEach ( run )
251
243
effects . forEach ( run )
252
244
}
You can’t perform that action at this time.
0 commit comments