Discuss
- How do I use computed properties in Vue.js to filter a list? For example, I have a list of users and I want to show only the active ones.Posted 2 years ago by
Here's my list format:
data() { return { users: [ { name: 'Alice', active: true }, { name: 'Bob', active: false }, { name: 'Carol', active: true } ] } } - What's the best way to handle state in a big Vue.js app?Posted 2 years ago byAlice (u/alice) Forum Admin
Reached the end of the results.
Comments (3)

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.
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.

