mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix(vue-renderer): call render:resourcesLoaded
hook before createRenderer
(#6223)
fixes #5960
This commit is contained in:
parent
c58da7e832
commit
35ba65562f
@ -128,13 +128,13 @@ export default class VueRenderer {
|
|||||||
// Load templates
|
// Load templates
|
||||||
await this.loadTemplates()
|
await this.loadTemplates()
|
||||||
|
|
||||||
|
await this.serverContext.nuxt.callHook('render:resourcesLoaded', this.serverContext.resources)
|
||||||
|
|
||||||
// Detect if any resource updated
|
// Detect if any resource updated
|
||||||
if (updated.length > 0) {
|
if (updated.length > 0) {
|
||||||
// Create new renderer
|
// Create new renderer
|
||||||
this.createRenderer()
|
this.createRenderer()
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.serverContext.nuxt.callHook('render:resourcesLoaded', this.serverContext.resources)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async loadTemplates () {
|
async loadTemplates () {
|
||||||
|
Loading…
Reference in New Issue
Block a user