Layout optional for page
Hello there,
I have a page file download and want the layout to be optional / conditional by pinia store:
Due to SSR nuxt throws error "userStore is not defined"...
Workaround is
Due to SSR I get a hydration error, what should be the correct thing to do here?
1 Reply
This thread might be of use to you: https://github.com/nuxt/nuxt/issues/14658
GitHub
Change default layout programmatically · Issue #14658 · nuxt/nuxt
Describe the feature In Nuxt 2 there is a very nice method called $nuxt.setLayout('layout2'). Sadly in Nuxt 3, this functionality is nowhere to be found. The following method works but you ...