Skip to content

How to check the ssrContext in a Pinia store with Nuxt 3? #801

Discussion options

You must be logged in to vote

Thank you for your answer this.$nuxt works.

The solution I was looking for is if (process.server) { /* */ }, don't need to use this.$nuxt.ssrContext here.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by eMeRiKa13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants