Combine init actions
This commit is contained in:
parent
02e9df865e
commit
d844f6ee1a
13 changed files with 228 additions and 232 deletions
|
@ -45,6 +45,10 @@ export default createReducer(initialState, {
|
|||
state.wrapWidth = action.wrapWidth;
|
||||
state.charWidth = action.charWidth;
|
||||
state.windowWidth = action.windowWidth;
|
||||
},
|
||||
|
||||
[actions.INIT](state, { app }) {
|
||||
Object.assign(state, app);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue