Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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