Home / Function/ registerComponentForCache() — vue Function Reference

registerComponentForCache() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  53f01abe_8351_b7b9_b0eb_09fd4e96879f["registerComponentForCache()"]
  9be52295_4e01_b6fd_a016_873e7cb61153["renderComponent()"]
  9be52295_4e01_b6fd_a016_873e7cb61153 -->|calls| 53f01abe_8351_b7b9_b0eb_09fd4e96879f
  ea57a750_853d_071e_282c_4b7157987b46["renderElement()"]
  ea57a750_853d_071e_282c_4b7157987b46 -->|calls| 53f01abe_8351_b7b9_b0eb_09fd4e96879f
  2be3818d_a4f3_495c_543c_ee071b428982["isDef()"]
  53f01abe_8351_b7b9_b0eb_09fd4e96879f -->|calls| 2be3818d_a4f3_495c_543c_ee071b428982
  style 53f01abe_8351_b7b9_b0eb_09fd4e96879f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/render.ts lines 101–109

function registerComponentForCache(options, write) {
  // exposed by vue-loader, need to call this if cache hit because
  // component lifecycle hooks will not be called.
  const register = options._ssrRegister
  if (write.caching && isDef(register)) {
    write.componentBuffer[write.componentBuffer.length - 1].add(register)
  }
  return register
}

Subdomains

Calls

Frequently Asked Questions

What does registerComponentForCache() do?
registerComponentForCache() is a function in the vue codebase.
What does registerComponentForCache() call?
registerComponentForCache() calls 1 function(s): isDef.
What calls registerComponentForCache()?
registerComponentForCache() is called by 2 function(s): renderComponent, renderElement.

Analyze Your Own Codebase

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

Try Supermodel Free