Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { keaReducer } from 'kea'
import { createStore, compose, combineReducers } from 'redux'
const reducers = combineReducers({
kea: keaReducer('kea'),
})
const reduxDevTools =
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__
? window.__REDUX_DEVTOOLS_EXTENSION__()
: f => f
export const initStore = initialState => {
return createStore(reducers, initialState, compose(reduxDevTools))
}