vuejs / pinia

🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
https://pinia.vuejs.org
MIT License
13.11k stars 1.05k forks source link

Docs: Nuxt 2 --> 3 #2766

Open david-mears-2 opened 1 month ago

david-mears-2 commented 1 month ago

Replace tip that was relevant to Nuxt 2 with the equivalent syntax for Nuxt 3.

I'm not sure whether this is in fact the intended usage pattern / syntax for Nuxt 3, but I think what I've written is an improvement over the status quo, since at least it works.

If this PR results in, or is deemed as, a definitive answer to this question, it may resolve that discussion.

netlify[bot] commented 1 month ago

Deploy Preview for pinia-official ready!

Name Link
Latest commit 7650f2f31e2962248f1891df0883dd36f865c48f
Latest deploy log https://app.netlify.com/sites/pinia-official/deploys/66da38d49c242800092076e0
Deploy Preview https://deploy-preview-2766--pinia-official.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 1 month ago

Deploy Preview for pinia-playground canceled.

Name Link
Latest commit 7650f2f31e2962248f1891df0883dd36f865c48f
Latest deploy log https://app.netlify.com/sites/pinia-playground/deploys/66da38d4a3517d0008a225b9