remote-redux-devtools
remote-redux-devtools copied to clipboard
redux-offline incompatibility
Hello,
I notice that this tool is incompatible with redux-offline https://github.com/jevakallio/redux-offline. If i use composeWithDevTools redux-offline is not working :(
const store = createStore(reducer, /* preloadedState, */ composeWithDevTools(
applyMiddleware(...middleware),
offline(offlineConfig)
));
If I instead use compose it works.
const store = createStore(reducer, /* preloadedState, */ compose(
applyMiddleware(...middleware),
offline(offlineConfig)
));
could you please check it?
Thanks.
yep - discovered the same thing myself
I have this issue as well. Any idea what's going on or how to fix it?
this worked for me
const enhancer = composeWithDevTools(
applyMiddleware(...middleware),
offline(offlineConfig),
// Add this to the end of your enhancer chain:
createStore => (reducer, preloadedState, enhancer) => enhancer(createStore)(reducer, preloadedState),
)
const store = createStore(reducer, /* preloadedState, */enhancer)