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

Function watchEffect

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

Source from the content-addressed store, hash-verified

54
55// Simple effect.
56export function watchEffect(
57 effect: WatchEffect,
58 options?: WatchEffectOptions,
59): WatchHandle {
60 return doWatch(effect, null, options)
61}
62
63export function watchPostEffect(
64 effect: WatchEffect,

Callers 10

apiWatch.bench.tsFile · 0.90
testRenderFunction · 0.85
ssrWatch.spec.tsFile · 0.85
setupFunction · 0.85
apiWatch.spec.tsFile · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
index.tsFile · 0.85

Calls 1

doWatchFunction · 0.85

Tested by 5

testRenderFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68