How to make redux-devtools work?
zhangmaku opened this issue · 1 comments
zhangmaku commented
import DevTool from '../dev-tool';
...
...
}
]} />
<DevTool />
<h1 className={example}>
Hot Reloadable <br />
Golang + React + Redux + Css-Modules
error
Redux DevTools could not render. Did you forget to include DevTools.instrument() in your store enhancer chain before using createStore()?
iKonrad commented
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