Home / Function/ warnOnce() — vue Function Reference

warnOnce() — vue Function Reference

Architecture documentation for the warnOnce() function in render.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  d6e38b19_e9d3_06e8_3caf_f46598422fd8["warnOnce()"]
  9be52295_4e01_b6fd_a016_873e7cb61153["renderComponent()"]
  9be52295_4e01_b6fd_a016_873e7cb61153 -->|calls| d6e38b19_e9d3_06e8_3caf_f46598422fd8
  e3484a9f_f8a5_4082_0208_641d58b965c3["warn()"]
  d6e38b19_e9d3_06e8_3caf_f46598422fd8 -->|calls| e3484a9f_f8a5_4082_0208_641d58b965c3
  style d6e38b19_e9d3_06e8_3caf_f46598422fd8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/render.ts lines 20–26

const warnOnce = msg => {
  if (!warned[msg]) {
    warned[msg] = true
    // eslint-disable-next-line no-console
    console.warn(`\n\u001b[31m${msg}\u001b[39m\n`)
  }
}

Subdomains

Calls

Called By

Frequently Asked Questions

What does warnOnce() do?
warnOnce() is a function in the vue codebase.
What does warnOnce() call?
warnOnce() calls 1 function(s): warn.
What calls warnOnce()?
warnOnce() is called by 1 function(s): renderComponent.

Analyze Your Own Codebase

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

Try Supermodel Free