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/

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


Flag Counter

?xgqfrms 2012-2020

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

原创文章,版权所有??xgqfrms, 禁止转载 ???,侵权必究??!