mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +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
|
applyMiddleware
|
||||||
} = redux;
|
} = redux;
|
||||||
|
|
||||||
|
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
||||||
|
|
||||||
module.exports = (state = Object.freeze({})) => {
|
module.exports = (state = Object.freeze({})) => {
|
||||||
return createStore(
|
return createStore(
|
||||||
enableBatching(createReducer()),
|
enableBatching(createReducer()),
|
||||||
state,
|
state,
|
||||||
compose(
|
composeEnhancers(
|
||||||
applyMiddleware(
|
applyMiddleware(
|
||||||
createLogger(),
|
createLogger(),
|
||||||
promiseMiddleware(),
|
promiseMiddleware(),
|
||||||
|
Loading…
Reference in New Issue
Block a user