What is the best way to use pinia with useAsyncData
I have a very simple component like this:
but it always causes
Hydration completed but contains mismatches.
what is the best way to get this data4 Replies
Can you show the code in
useNotificationsStore
?sure
My suggestion would be to try rewrite it as a setup store (https://pinia.vuejs.org/core-concepts/#Setup-Stores), but utilize
useState
instead of ref
Pinia 🍍
Intuitive, type safe, light and flexible Store for Vue
nice i'll check it out
thank you