How to implement Nuxt 2's NuxtServerInit in a Nuxt 3/Pinia project? #2031
Unanswered
wmdev0808
asked this question in
Help and Questions
Replies: 1 comment
-
You can do it with nuxt3 plugin, here is an example: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm stuck with implementing Nuxt 2/NuxtServerInit in a Nuxt 3/Pinia project.
Here is my repo for your reference: project repo
/stores/root.ts
/plugins/posts.ts
What I want to do:
What the problem is:
plugins/posts.server.ts
and run the app againI hope you Pinia experts help me to fix this issue.
It would be better if you guys can make the PR for your fix into my repo.
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions