mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30:06 +02:00
Add Redux devtool extension connection - will need to only be available in dev in the future
This commit is contained in:
parent
e138d6f0db
commit
94ae410220
@ -12,11 +12,13 @@ const {
|
||||
applyMiddleware
|
||||
} = redux;
|
||||
|
||||
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
||||
|
||||
module.exports = (state = Object.freeze({})) => {
|
||||
return createStore(
|
||||
enableBatching(createReducer()),
|
||||
state,
|
||||
compose(
|
||||
composeEnhancers(
|
||||
applyMiddleware(
|
||||
createLogger(),
|
||||
promiseMiddleware(),
|
||||
|
Loading…
Reference in New Issue
Block a user