]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove outdated options
authorEvan You <yyx990803@gmail.com>
Wed, 15 Jul 2020 21:05:00 +0000 (17:05 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 15 Jul 2020 21:05:00 +0000 (17:05 -0400)
packages/reactivity/src/effect.ts
packages/runtime-core/src/apiWatch.ts

index 98aff15ddbd3756081b90ec45d4dbc28b601f007..03f8e5105ee1cb7945ce65637898d6bba20008ec 100644 (file)
@@ -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
index bca2fbef18ccca48c98e404c572c43bc0130708f..98f01b544d4f1773eff8a5335210c9cec43a741b 100644 (file)
@@ -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