constructor() — vue Function Reference
Architecture documentation for the constructor() function in render-context.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD faeed4f1_db5a_f853_084a_5d92eca86f3c["constructor()"] 1f378302_3376_98d6_8ce8_9b6280a10bfa["RenderContext"] faeed4f1_db5a_f853_084a_5d92eca86f3c -->|defined in| 1f378302_3376_98d6_8ce8_9b6280a10bfa 7826acfe_426e_fbac_e835_ff96a6d228a9["normalizeAsync()"] faeed4f1_db5a_f853_084a_5d92eca86f3c -->|calls| 7826acfe_426e_fbac_e835_ff96a6d228a9 style faeed4f1_db5a_f853_084a_5d92eca86f3c 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
Calls
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the vue codebase, defined in packages/server-renderer/src/render-context.ts.
Where is constructor() defined?
constructor() is defined in packages/server-renderer/src/render-context.ts at line 47.
What does constructor() call?
constructor() calls 1 function(s): normalizeAsync.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free