From 4535b1bde88d760ba9aa00656f98a5aa57ea949b Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 15 Jul 2020 17:05:00 -0400 Subject: [PATCH] chore: remove outdated options --- packages/reactivity/src/effect.ts | 1 - packages/runtime-core/src/apiWatch.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/packages/reactivity/src/effect.ts b/packages/reactivity/src/effect.ts index 98aff15d..03f8e510 100644 --- a/packages/reactivity/src/effect.ts +++ b/packages/reactivity/src/effect.ts @@ -21,7 +21,6 @@ export interface ReactiveEffect { export interface ReactiveEffectOptions { lazy?: boolean - computed?: boolean scheduler?: (job: ReactiveEffect) => void onTrack?: (event: DebuggerEvent) => void onTrigger?: (event: DebuggerEvent) => void diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index bca2fbef..98f01b54 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/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