Pinia is recommended approach as a state management tool for Vue 3 also recommended by Evan You as it works really well with Composition API. You can check out the explanation video here -> youtu.be/2KBHvaAWJOA?t=896
Also, I think that you can easily switch it to Vuex and then import the store using a plugin as it is done in the bonus links.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
why should we use this instead of vuex ?
Hi Benyamin,
Pinia is recommended approach as a state management tool for Vue 3 also recommended by Evan You as it works really well with Composition API. You can check out the explanation video here -> youtu.be/2KBHvaAWJOA?t=896
Also, I think that you can easily switch it to Vuex and then import the store using a plugin as it is done in the bonus links.