mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-12 03:38:07 +00:00
Merge pull request #1600 from whtsky/serverState
rename `context.serverState` to `context.nuxtState`
This commit is contained in:
commit
45b6c9320b
@ -109,7 +109,7 @@ export function getContext (context, app) {
|
|||||||
ctx.beforeNuxtRender = (fn) => context.beforeRenderFns.push(fn)
|
ctx.beforeNuxtRender = (fn) => context.beforeRenderFns.push(fn)
|
||||||
}
|
}
|
||||||
if (ctx.isClient && window.__NUXT__) {
|
if (ctx.isClient && window.__NUXT__) {
|
||||||
ctx.serverState = window.__NUXT__
|
ctx.nuxtState = window.__NUXT__
|
||||||
}
|
}
|
||||||
return ctx
|
return ctx
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user