constructor() — vue Function Reference
Architecture documentation for the constructor() function in render-context.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 3a2c91ee_4272_b30c_1317_2a9a41c47af3["constructor()"] 6241e8b8_bd4c_c780_a955_9ccd5b8211f7["normalizeAsync()"] 3a2c91ee_4272_b30c_1317_2a9a41c47af3 -->|calls| 6241e8b8_bd4c_c780_a955_9ccd5b8211f7 7198d4bc_20c8_d177_6a35_e0ecc629debd["constructor()"] 3a2c91ee_4272_b30c_1317_2a9a41c47af3 -->|calls| 7198d4bc_20c8_d177_6a35_e0ecc629debd style 3a2c91ee_4272_b30c_1317_2a9a41c47af3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/server-renderer/src/render-context.ts lines 47–69
constructor(options: Record<string, any>) {
this.userContext = options.userContext
this.activeInstance = options.activeInstance
this.renderStates = []
this.write = options.write
this.done = options.done
this.renderNode = options.renderNode
this.isUnaryTag = options.isUnaryTag
this.modules = options.modules
this.directives = options.directives
const cache = options.cache
if (cache && (!cache.get || !cache.set)) {
throw new Error('renderer cache must implement at least get & set.')
}
this.cache = cache
this.get = cache && normalizeAsync(cache, 'get')
this.has = cache && normalizeAsync(cache, 'has')
this.next = this.next.bind(this)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the vue codebase.
What does constructor() call?
constructor() calls 2 function(s): constructor, normalizeAsync.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free