Home / Function/ watchSyncEffect() — vue Function Reference

watchSyncEffect() — vue Function Reference

Architecture documentation for the watchSyncEffect() function in apiWatch.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  fdfac1cb_5889_15fa_76dd_977bb613a1f7["watchSyncEffect()"]
  880ea200_f528_af26_3f6f_c77fc2f21647["doWatch()"]
  fdfac1cb_5889_15fa_76dd_977bb613a1f7 -->|calls| 880ea200_f528_af26_3f6f_c77fc2f21647
  style fdfac1cb_5889_15fa_76dd_977bb613a1f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/v3/apiWatch.ts lines 81–92

export function watchSyncEffect(
  effect: WatchEffect,
  options?: DebuggerOptions
) {
  return doWatch(
    effect,
    null,
    (__DEV__
      ? { ...options, flush: 'sync' }
      : { flush: 'sync' }) as WatchOptionsBase
  )
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does watchSyncEffect() do?
watchSyncEffect() is a function in the vue codebase.
What does watchSyncEffect() call?
watchSyncEffect() calls 1 function(s): doWatch.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free