feat(vue-renderer): pass renderContext to vue-renderer:ssr:templateParams hook (#7168)

This commit is contained in:
Eunjae Lee 2020-04-02 11:28:57 +02:00 committed by GitHub
parent 1a5515f792
commit 4f6f7fe1cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ export default class SSRRenderer extends BaseRenderer {
}
// Call ssr:templateParams hook
await this.serverContext.nuxt.callHook('vue-renderer:ssr:templateParams', templateParams)
await this.serverContext.nuxt.callHook('vue-renderer:ssr:templateParams', templateParams, renderContext)
// Render with SSR template
const html = this.renderTemplate(this.serverContext.resources.ssrTemplate, templateParams)