NuxtN
Nuxt2y ago
Bazze

Pinia and useState

Im building a new store, and remembered the newish useState composable.
Normally i would use ref in a Pinia store, but since useState is described in the docs as useState is an SSR-friendly ref replacement.
Should i then use useState within the Pinia store?

Havent been able to find anyone else asking this question.
Im specifically using setup stores.
Was this page helpful?