Home / Function/ renderStringNode() — vue Function Reference

renderStringNode() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fc04216e_62e6_e181_81ff_b2b3c5f35a97["renderStringNode()"]
  53230fed_d564_80ea_bf1f_8c413f7b736f["renderNode()"]
  53230fed_d564_80ea_bf1f_8c413f7b736f -->|calls| fc04216e_62e6_e181_81ff_b2b3c5f35a97
  ae8743b1_821c_ee0a_665c_87ac493ab93c["renderStringNode()"]
  fc04216e_62e6_e181_81ff_b2b3c5f35a97 -->|calls| ae8743b1_821c_ee0a_665c_87ac493ab93c
  299f2646_f776_9b7d_1179_7b9087b1e66c["isUndef()"]
  fc04216e_62e6_e181_81ff_b2b3c5f35a97 -->|calls| 299f2646_f776_9b7d_1179_7b9087b1e66c
  style fc04216e_62e6_e181_81ff_b2b3c5f35a97 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/render.ts lines 287–302

function renderStringNode(el, context) {
  const { write, next } = context
  if (isUndef(el.children) || el.children.length === 0) {
    write(el.open + (el.close || ''), next)
  } else {
    const children: Array<VNode> = el.children
    context.renderStates.push({
      type: 'Element',
      children,
      rendered: 0,
      total: children.length,
      endTag: el.close
    })
    write(el.open, next)
  }
}

Subdomains

Called By

Frequently Asked Questions

What does renderStringNode() do?
renderStringNode() is a function in the vue codebase.
What does renderStringNode() call?
renderStringNode() calls 2 function(s): isUndef, renderStringNode.
What calls renderStringNode()?
renderStringNode() is called by 1 function(s): renderNode.

Analyze Your Own Codebase

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

Try Supermodel Free