Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vuex

> 前端框架
Open source

🗃️ Centralized State Management for Vue.js.

28.3K stars0 likes2 views
WebsiteGitHub

About

🗃️ Centralized State Management for Vue.js.

Vuex


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:

bash
$ 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

Issues· 143 open

View all issuesOpen on GitHub
  • #2208

    vuex的例子报错

    Updated Nov 10, 2025
  • #2213

    Fix type definitions with `moduleResolutions` `nodenext`

    Updated Nov 10, 2025
  • #2249

    使用mudule,在一个模块中commit另一个模块的mutations报unknown local mutation type

    Updated Nov 10, 2025
  • #2124

    Bring back `CommitOptions#silent`

    Updated Oct 17, 2025
  • #2223

    vite 创建vue项目,安装vuex后vscode报错,Could not find a declaration file for module 'vuex'.

    Updated Feb 10, 2025
  • #2260

    Strict mode keeps old watchers and hinders performance

    Updated Jan 17, 2025
  • #1593

    Switching to a nested route is automatically running the last commit event from parent's store

    Updated Nov 12, 2024
  • #2197

    Getters - Reactivity broken after registering new module

    Updated Sep 11, 2024
  • #2250

    Vuex Devtools plugins registered on server which increases memory usage

    Updated Jul 15, 2024
  • #2248

    vuex3.6.2内存泄漏

    Updated Jun 6, 2024

> Tags

JavaScriptjavascriptstate-managementtime-travelvue

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架