_flush() — vue Function Reference
Architecture documentation for the _flush() function in template-stream.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD ec23851e_5b87_f9fb_e085_226ff2e53a15["_flush()"] 2db55f9f_d6b9_466e_41e7_5872bfa09b6d["renderState()"] ec23851e_5b87_f9fb_e085_226ff2e53a15 -->|calls| 2db55f9f_d6b9_466e_41e7_5872bfa09b6d 48333725_76cd_922c_8337_a788ad586e3e["renderScripts()"] ec23851e_5b87_f9fb_e085_226ff2e53a15 -->|calls| 48333725_76cd_922c_8337_a788ad586e3e style ec23851e_5b87_f9fb_e085_226ff2e53a15 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/server-renderer/src/template-renderer/template-stream.ts lines 61–80
_flush(done: Function) {
this.emit('beforeEnd')
if (this.inject) {
// inline initial store state
const state = this.renderer.renderState(this.context)
if (state) {
this.push(state)
}
// embed scripts needed
const scripts = this.renderer.renderScripts(this.context)
if (scripts) {
this.push(scripts)
}
}
this.push(this.template.tail(this.context))
done()
}
Domain
Subdomains
Source
Frequently Asked Questions
What does _flush() do?
_flush() is a function in the vue codebase.
What does _flush() call?
_flush() calls 2 function(s): renderScripts, renderState.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free