- Notifications
You must be signed in to change notification settings - Fork9.6k
🗃️ Centralized State Management for Vue.js.
License
vuejs/vuex
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Pinia is now the new default
The official state management library for Vue has changed toPinia. Pinia has almost the exact same or enhanced API as Vuex 5, described inVuex 5 RFC. You could simply consider Pinia as Vuex 5 with a different name. Pinia also works with Vue 2.x as well.
Vuex 3 and 4 will still be maintained. However, it's unlikely to add new functionalities to it. Vuex and Pinia can be installed in the same project. If you're migrating existing Vuex app to Pinia, it might be a suitable option. However, if you're planning to start a new project, we highly recommend using Pinia instead.
Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's officialdevtools extension to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
Learn more about Vuex at "What is Vuex?", or get started by looking intofull documentation.
To check out docs, visitvuex.vuejs.org.
You may find example applications built with Vuex under theexamples
directory.
Running the examples:
$ npm install$ npm run dev# serve examples at localhost:8080
For questions and support please use theDiscord chat server orthe official forum. The issue list of this repo isexclusively for bug reports and feature requests.
Please make sure to read theIssue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.
Detailed changes for each release are documented in therelease notes.
For latest releases and announcements, follow on Twitter:@vuejs.
Please make sure to read theContributing Guide before making a pull request.
Copyright (c) 2015-present Evan You
About
🗃️ Centralized State Management for Vue.js.