Created
February 16, 2019 08:43
-
-
Save nightspirit/907a2cd6b585a42e8a260661ca96c0f7 to your computer and use it in GitHub Desktop.
This file contains 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
import { combineReducers, persistReducer } from 'Reducers/helpers' | |
import TokenReducer from 'Reducers/Token' | |
import FeatureReducer from 'Reducers/Feature' | |
const AppReducer = combineReducers({ | |
token: persistReducer({ key: 'token', storage: localStorage })(TokenReducer), | |
feature: persistReducer({ key: 'feature', storage: sessionStorage })(FeatureReducer) | |
}) | |
export default AppReducer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment