Skip to content

Instantly share code, notes, and snippets.

@nightspirit
Created February 16, 2019 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nightspirit/907a2cd6b585a42e8a260661ca96c0f7 to your computer and use it in GitHub Desktop.
Save nightspirit/907a2cd6b585a42e8a260661ca96c0f7 to your computer and use it in GitHub Desktop.
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