obs-portal/frontend/src/store.js

11 lines
261 B
JavaScript
Raw Normal View History

2021-02-20 18:31:18 +00:00
import {compose, createStore} from 'redux'
import persistState from 'redux-localstorage'
import rootReducer from './reducers'
2021-11-04 17:13:24 +00:00
const enhancer = compose(persistState(['login']))
2021-02-20 18:31:18 +00:00
const store = createStore(rootReducer, undefined, enhancer)
export default store