DEV Community

Discussion on: Using Modules and Pinia to structure Nuxt 3 app

Collapse
 
benyaminrmb profile image
BenyaminRmb

why should we use this instead of vuex ?

Collapse
 
jacobandrewsky profile image
Jakub Andrzejewski

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.