Created
September 4, 2017 00:56
-
-
Save arackaf/0a6103e7e59b6e1bff1e859794b9dd05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const combineLazyReducers = (reducers, initialState) => { | |
let reducer = combineReducers(reducers); | |
return (state, action) => ({...initialState, ...reducer(state, action)}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment