Przeglądaj źródła

chore: remove outdated options

Evan You 6 lat temu
rodzic
commit
4535b1bde8

+ 0 - 1
packages/reactivity/src/effect.ts

@@ -21,7 +21,6 @@ export interface ReactiveEffect<T = any> {
 
 export interface ReactiveEffectOptions {
   lazy?: boolean
-  computed?: boolean
   scheduler?: (job: ReactiveEffect) => void
   onTrack?: (event: DebuggerEvent) => void
   onTrigger?: (event: DebuggerEvent) => void

+ 0 - 2
packages/runtime-core/src/apiWatch.ts

@@ -275,8 +275,6 @@ function doWatch(
 
   const runner = effect(getter, {
     lazy: true,
-    // so it runs before component update effects in pre flush mode
-    computed: true,
     onTrack,
     onTrigger,
     scheduler: applyCb ? () => scheduler(applyCb) : scheduler