1
0

Тайлбар байхгүй

dependabot[bot] 804449d7ef build(deps): bump json5 from 1.0.1 to 1.0.2 2 жил өмнө
.github 1ca7c1d430 ci: use github actions 2 жил өмнө
docs 01f87f0c3d docs(zh): update zh docs from en docs (#2150) 3 жил өмнө
examples 75d20ece2d chore: delete unused import of shopping-cart example (#2156) 3 жил өмнө
scripts c98f3a57f2 chore: remove unnecessary console log in the release script 4 жил өмнө
src b2f851f427 fix: getters being destroyed on component destroy (#1878) (#1883) 3 жил өмнө
test b2f851f427 fix: getters being destroyed on component destroy (#1878) (#1883) 3 жил өмнө
types 4ab294793a fix: export missing `storeKey` 4 жил өмнө
.babelrc a6bfbb3230 dx: add devtools integration (#1942) (#1949) 4 жил өмнө
.eslintrc.json a6bfbb3230 dx: add devtools integration (#1942) (#1949) 4 жил өмнө
.gitignore c51f55f4ca docs: add v4 docs (#1845) 4 жил өмнө
CHANGELOG.md a295412e2b chore: add link in changelog [skip ci] 2 жил өмнө
LICENSE f053ae7e98 Avoid updating license every year (#1108) 7 жил өмнө
README.md b7f471aef9 chore: update readme badge [ci skip] 2 жил өмнө
jest.config.js 674680f3ff chore: bump jest and puppeteer 2 жил өмнө
package.json 674680f3ff chore: bump jest and puppeteer 2 жил өмнө
rollup.config.js a115d9e90d chore: bump deps 2 жил өмнө
yarn.lock 804449d7ef build(deps): bump json5 from 1.0.1 to 1.0.2 2 жил өмнө

README.md

Vuex

npm ci status


Pinia is now the new default

The official state management library for Vue has changed to Pinia. Pinia has almost the exact same or enhanced API as Vuex 5, described in Vuex 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 official devtools 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 into full documentation.

Documentation

To check out docs, visit vuex.vuejs.org.

Examples

You may find example applications built with Vuex under the examples directory.

Running the examples:

$ npm install
$ npm run dev # serve examples at localhost:8080

Questions

For questions and support please use the Discord chat server or the official forum. The issue list of this repo is exclusively for bug reports and feature requests.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Changelog

Detailed changes for each release are documented in the release notes.

Stay In Touch

For latest releases and announcements, follow on Twitter: @vuejs.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

License

MIT

Copyright (c) 2015-present Evan You