mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +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