Closed zhangmaku closed 7 years ago
Here's my createStore part with devTools:
return reduxCreateStore(
reducers,
state,
compose(
applyMiddleware.apply(null, middlewares),
typeof window === 'object' && typeof window.devToolsExtension !== 'undefined' ? window.devToolsExtension() : f => f
)
);
you just need to add this line typeof window === 'object' && typeof window.devToolsExtension !== 'undefined' ? window.devToolsExtension() : f => f
to compose
when creating a store and it should work
error
Redux DevTools could not render. Did you forget to include DevTools.instrument() in your store enhancer chain before using createStore()?