( effect: WatchEffect, options?: WatchOptionsBase )
| 398 | } |
| 399 | |
| 400 | export function watchEffect( |
| 401 | effect: WatchEffect, |
| 402 | options?: WatchOptionsBase |
| 403 | ): WatchStopHandle { |
| 404 | const opts = getWatchEffectOption(options) |
| 405 | const vm = getWatcherVM() |
| 406 | return createWatcher(vm, effect, null, opts) |
| 407 | } |
| 408 | |
| 409 | export function watchPostEffect(effect: WatchEffect) { |
| 410 | return watchEffect(effect, { flush: 'post' }) |
searching dependent graphs…