From 4f6f7fe1cd0fe99b1b04bb8c363924e7216a68c9 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Thu, 2 Apr 2020 11:28:57 +0200 Subject: [PATCH] feat(vue-renderer): pass `renderContext` to `vue-renderer:ssr:templateParams` hook (#7168) --- packages/vue-renderer/src/renderers/ssr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-renderer/src/renderers/ssr.js b/packages/vue-renderer/src/renderers/ssr.js index 946704e2b3..53dba86651 100644 --- a/packages/vue-renderer/src/renderers/ssr.js +++ b/packages/vue-renderer/src/renderers/ssr.js @@ -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)