Vuex 4 is the version compatible with Vue.js 3
Questions tagged [vuex4]
108 questions
24
votes
1 answer
Using Vuex 4 modules in Vue 3 with TypeScript, and how to fix cyclical dependency linting error?
As of this writing, Vue 3.0 has reached it's first stable v3.0.0 'One Piece' release, with Vuex 4 being in v4.0.0-beta.4.
Unfortunately there is no official examples yet on how to use Vuex 4 modules in TypeScript...
As a further requirement, I want…

ux.engineer
- 10,082
- 13
- 67
- 112
20
votes
2 answers
Vue.js 3 - "export 'createStore' was not found in 'vuex'
i have this error when run my app :
WARNING Compiled with 1 warnings …

DeV1
- 247
- 1
- 3
- 9
14
votes
4 answers
Why are computed properties not reactive in my Vue 3 app?
Issue
✅ Vue 2:
computed properties are updated after vuex store mutation.
❌ Vue 3:
computed properties are not updated after vuex store mutation.
Vuex 4
Purpose: Get posts from Firestore. Add to "postsArray". Commit mutation.
Note: The function…

Vue3
- 141
- 1
- 3
10
votes
6 answers
How to use Vuex mapGetters with Vue 3 SFC Script Setup syntax?
I'm refactoring component from regular Vue 3 Composition API to Script Setup syntax. Starting point: