constructor() — vue Function Reference
Architecture documentation for the constructor() function in render-context.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 23664868_1ebc_ec78_8e7a_31d054089810["constructor()"] e3ef7cea_179b_7c08_2222_a8a2e71458a4["normalizeAsync()"] 23664868_1ebc_ec78_8e7a_31d054089810 -->|calls| e3ef7cea_179b_7c08_2222_a8a2e71458a4 4c6fcd8e_8bcb_c9b8_87ee_88316cb04605["constructor()"] 23664868_1ebc_ec78_8e7a_31d054089810 -->|calls| 4c6fcd8e_8bcb_c9b8_87ee_88316cb04605 style 23664868_1ebc_ec78_8e7a_31d054089810 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