mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
9f02e5dae7
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com> Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: pooya parsa <pyapar@gmail.com>
16 lines
277 B
Vue
16 lines
277 B
Vue
<template>
|
|
<h1>Special state in `window.__NUXT__`</h1>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
middleware ({ beforeNuxtRender }) {
|
|
if (process.server) {
|
|
beforeNuxtRender(({ nuxtState }) => {
|
|
nuxtState.beforeNuxtRender = true
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|