mirror of https://github.com/nuxt/nuxt.git
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
|
||||
await this.loadTemplates()
|
||||
|
||||
await this.serverContext.nuxt.callHook('render:resourcesLoaded', this.serverContext.resources)
|
||||
|
||||
// Detect if any resource updated
|
||||
if (updated.length > 0) {
|
||||
// Create new renderer
|
||||
this.createRenderer()
|
||||
}
|
||||
|
||||
return this.serverContext.nuxt.callHook('render:resourcesLoaded', this.serverContext.resources)
|
||||
}
|
||||
|
||||
async loadTemplates () {
|
||||
|
|
Loading…
Reference in New Issue