Home / Function/ markRaw() — vue Function Reference

markRaw() — vue Function Reference

Architecture documentation for the markRaw() function in reactive.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  6b74dfcc_5a84_5b2c_6128_ccb3fff2e091["markRaw()"]
  e84ea476_9f30_e7b9_aaa0_4026f0c97365["reactive.ts"]
  6b74dfcc_5a84_5b2c_6128_ccb3fff2e091 -->|defined in| e84ea476_9f30_e7b9_aaa0_4026f0c97365
  style 6b74dfcc_5a84_5b2c_6128_ccb3fff2e091 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/v3/reactivity/reactive.ts lines 119–127

export function markRaw<T extends object>(
  value: T
): T & { [RawSymbol]?: true } {
  // non-extensible objects won't be observed anyway
  if (Object.isExtensible(value)) {
    def(value, ReactiveFlags.SKIP, true)
  }
  return value
}

Domain

Subdomains

Frequently Asked Questions

What does markRaw() do?
markRaw() is a function in the vue codebase, defined in src/v3/reactivity/reactive.ts.
Where is markRaw() defined?
markRaw() is defined in src/v3/reactivity/reactive.ts at line 119.

Analyze Your Own Codebase

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

Try Supermodel Free