The Future of VueX
summary
Vuex 4 is a compatibility layer for Vue 3 that keeps Vuex 3’s public API while changing bundles, installing with createStore and passing a store instance to app.use, and improving TypeScript and packaging. The proposed Vuex 5 replaces mutations with no mutations only actions, adds defineStore for both Options and Composition APIs, uses a Vuex instance registry to keep SSR-safe per-request state, enables automated code splitting of stores, and provides a Nuxt-like plugin injection system; timeline: Vuex 5 RFC after Vuex 4 stable.
AI-written summary · about
chapters (12)
- 0:00Start
- 3:55New bundles aligned with Vue 3.
- 4:21New Installation process.
- 6:15Logger plugin included in the core.
- 8:09What's New in Vuex 5?
- 10:07Defining a store.
- 11:43Using a store.
- 13:10Using a store in Vue Component.
- 14:03Store is almost identical to Vue Component
- 14:39Writing a store with Composition API.
- 17:46Store composition.
- 20:38Plugins type definition







