xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Vuex 4.x All In One

Vuex 4.x All In One

https://vuex.vuejs.org/



Vue 3.x 源码解读

track,effect,dep

Set, Map, WeakMap

https://www.vuemastery.com/courses/vue-3-reactivity/vue3-reactivity

https://github.com/vuejs/core/tree/main/packages/reactivity/src

vuex 3.x All In One

https://v3.vuex.vuejs.org/

https://www.cnblogs.com/xgqfrms/p/14143877.html

Core Concepts

State 类似于 data
Mutations ??? 真正更新 state (sync 同步操作)
Actions 类似于 methods (async 异步操作)
Getters 类似于 computed
Modules 类似于 components

vuex 数据流程图

https://vuex.vuejs.org/zh/

Component triiger event => dispatch Action => commit Mutation => mutate State => render Component

refs



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-03-07 21:06  xgqfrms  阅读(32)  评论(4编辑  收藏  举报