vuex 有 getter ,目的是快捷得到state; redux 没有这层,react-redux mapStateToProps参数做了这个工作。 vuex 中 mutation 只是单纯赋值(很浅的一层); redux 中 reducer ... ... <看更多>
Search
Search
vuex 有 getter ,目的是快捷得到state; redux 没有这层,react-redux mapStateToProps参数做了这个工作。 vuex 中 mutation 只是单纯赋值(很浅的一层); redux 中 reducer ... ... <看更多>
redux -vuex is focused on simplifying the access to the redux state and bind state changes to the vue instance in an efficient way. mapState. To assign state ... ... <看更多>
I don't think using Vuex as you described is a problem. If you really need to have the data stored somewhere (vuex or components) it will ... ... <看更多>
... <看更多>