What's the best way to handle state in a big Vue.js app?

alice started this discussion on Jun 16, 2024 in vue_devs

Back to vue_devs

alice
Alice (u/alice) Forum Admin
Posted 2 years ago

Comments (3)

cluse
cluse · posted 2 years ago Permalinked

For handling state in a big Vue.js app, I recommend using Vuex. It's a state management library that centralizes your state. You can use Vue Devtools with it, which helps with debugging.

Permalink
eleanorperaltamontoya
eleanorperaltamontoya · posted 2 years ago

Vuex is great, but for smaller apps, it might be a bit much. You could try using the Composition API with reactive objects instead.

Vuex 4 works great with Vue 3, but you might also want to check out Pinia. It's a cool alternative, especially for new projects.