MCPcopy
hub / github.com/vuejs/core / watchSyncEffect

Function watchSyncEffect

packages/runtime-core/src/apiWatch.ts:76–87  ·  view source on GitHub ↗
(
  effect: WatchEffect,
  options?: DebuggerOptions,
)

Source from the content-addressed store, hash-verified

74}
75
76export function watchSyncEffect(
77 effect: WatchEffect,
78 options?: DebuggerOptions,
79): WatchHandle {
80 return doWatch(
81 effect,
82 null,
83 __DEV__
84 ? extend({}, options as WatchEffectOptions, { flush: 'sync' })
85 : { flush: 'sync' },
86 )
87}
88
89export type MultiWatchSources = (WatchSource<unknown> | object)[]
90

Callers 2

useModelFunction · 0.90
setupFunction · 0.85

Calls 1

doWatchFunction · 0.85

Tested by 1

setupFunction · 0.68