mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 18:37:21 +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>
|