How to remove the __INITIAL_STATE__ variable #12999
-
I'm using Quasar v1. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
ssr: {
manualStoreHydration: true/false,
// Manually hydrate the store.
// This is detailed in a subsection below
} |
Beta Was this translation helpful? Give feedback.
-
If you are sure that you don't need state hydration in any way, you can do the following in // /src/store(s)/index.js
// ...
export default store(function ({ ssrContext }) {
// ...
if (process.env.SERVER && ssrContext) {
ssrContext.onRendered(() => {
// Disable
ssrContext.state = undefined
})
}
// ...
}) See |
Beta Was this translation helpful? Give feedback.
-
@yusufkandemir |
Beta Was this translation helpful? Give feedback.
-
Going to implement this for Quasar v2 then backport to v1 also. |
Beta Was this translation helpful? Give feedback.
Going to implement this for Quasar v2 then backport to v1 also.
Please follow the progress in #13113