Home / Function/ markStatic() — vue Function Reference

markStatic() — vue Function Reference

Architecture documentation for the markStatic() function in render-static.ts from the vue codebase.

Function typescript VueCore GlobalAPI calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  ff978733_04e9_95ff_8503_71563bdfb3e7["markStatic()"]
  ff793352_554c_f421_d224_78b65a6278df["render-static.ts"]
  ff978733_04e9_95ff_8503_71563bdfb3e7 -->|defined in| ff793352_554c_f421_d224_78b65a6278df
  5ba7bf27_e101_d28a_78ca_f07ea9f4ddba["renderStatic()"]
  5ba7bf27_e101_d28a_78ca_f07ea9f4ddba -->|calls| ff978733_04e9_95ff_8503_71563bdfb3e7
  b3047b52_2fbf_160f_5c43_12dc0073a9d3["markOnce()"]
  b3047b52_2fbf_160f_5c43_12dc0073a9d3 -->|calls| ff978733_04e9_95ff_8503_71563bdfb3e7
  5b4bc610_35ef_a065_8ad6_6a82095a2757["markStaticNode()"]
  ff978733_04e9_95ff_8503_71563bdfb3e7 -->|calls| 5b4bc610_35ef_a065_8ad6_6a82095a2757
  style ff978733_04e9_95ff_8503_71563bdfb3e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/instance/render-helpers/render-static.ts lines 41–51

function markStatic(tree: VNode | Array<VNode>, key: string, isOnce: boolean) {
  if (isArray(tree)) {
    for (let i = 0; i < tree.length; i++) {
      if (tree[i] && typeof tree[i] !== 'string') {
        markStaticNode(tree[i], `${key}_${i}`, isOnce)
      }
    }
  } else {
    markStaticNode(tree, key, isOnce)
  }
}

Domain

Subdomains

Frequently Asked Questions

What does markStatic() do?
markStatic() is a function in the vue codebase, defined in src/core/instance/render-helpers/render-static.ts.
Where is markStatic() defined?
markStatic() is defined in src/core/instance/render-helpers/render-static.ts at line 41.
What does markStatic() call?
markStatic() calls 1 function(s): markStaticNode.
What calls markStatic()?
markStatic() is called by 2 function(s): markOnce, renderStatic.

Analyze Your Own Codebase

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

Try Supermodel Free