mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
feat(vue-renderer): pass renderContext
to vue-renderer:ssr:templateParams
hook (#7168)
This commit is contained in:
parent
1a5515f792
commit
4f6f7fe1cd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user