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
  58317653_9bb1_32ea_f8cb_dc6066936032["watchSyncEffect()"]
  38aa88fe_678d_7728_4258_240bdb85b32b["apiWatch.ts"]
  58317653_9bb1_32ea_f8cb_dc6066936032 -->|defined in| 38aa88fe_678d_7728_4258_240bdb85b32b
  1b10e00d_02e6_305e_b4ad_0e11475c3139["doWatch()"]
  58317653_9bb1_32ea_f8cb_dc6066936032 -->|calls| 1b10e00d_02e6_305e_b4ad_0e11475c3139
  style 58317653_9bb1_32ea_f8cb_dc6066936032 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

Defined In

Calls

Frequently Asked Questions

What does watchSyncEffect() do?
watchSyncEffect() is a function in the vue codebase, defined in src/v3/apiWatch.ts.
Where is watchSyncEffect() defined?
watchSyncEffect() is defined in src/v3/apiWatch.ts at line 81.
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