Home / Function/ markOnce() — vue Function Reference

markOnce() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0366d9f1_e273_e4cd_eef2_614d3a3c3037["markOnce()"]
  e5b73b21_ce93_60f6_4f4e_578d2021659a["markStatic()"]
  0366d9f1_e273_e4cd_eef2_614d3a3c3037 -->|calls| e5b73b21_ce93_60f6_4f4e_578d2021659a
  style 0366d9f1_e273_e4cd_eef2_614d3a3c3037 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/instance/render-helpers/render-static.ts lines 32–39

export function markOnce(
  tree: VNode | Array<VNode>,
  index: number,
  key: string
) {
  markStatic(tree, `__once__${index}${key ? `_${key}` : ``}`, true)
  return tree
}

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free