mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
feat: add hook for getting data before sending to client
This commit is contained in:
parent
6494818a5d
commit
7514db73b2
@ -353,6 +353,8 @@ export default class Renderer {
|
|||||||
HEAD += context.renderResourceHints()
|
HEAD += context.renderResourceHints()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await this.nuxt.callHook('render:context', context.nuxt)
|
||||||
|
|
||||||
const serializedSession = `window.__NUXT__=${serialize(context.nuxt, {
|
const serializedSession = `window.__NUXT__=${serialize(context.nuxt, {
|
||||||
isJSON: true
|
isJSON: true
|
||||||
})};`
|
})};`
|
||||||
|
Loading…
Reference in New Issue
Block a user