ktsn / Vuex Reducer
Licence: mit
Reducer in Vuex
Stars: ✭ 52
Programming Languages
typescript
32286 projects
vuex-reducer
Reducer in Vuex.
Example
import Vue from 'vue'
import Vuex from 'vuex'
import { reducers } from 'vuex-reducer'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
value: {
name: 'foo'
},
history: []
},
mutations: reducers({
update: (state, name) => ({
value: {
name
},
history: [...state.history, state.value]
})
})
})
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].