redux Devtools工具使用
redux中的状态都是公共的,我们可通过reduxDevtools工具查看改变状态的每一步操作,及状态的变化情况。
reduxDevtools工具需要安装到浏览器扩展(google商店安装自备梯子),安装成功后console面板中会多出一个redux选项

使用
参考:https://github.com/yuanpeng666/redux-devtools-extension
const composeEnhancers = (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) || compose;
composeEnhancers方法将中间件包裹起来

示例
每一步的action及state改变都可看到。

1,155条评论
Pingback:
Trevor Snyder
Everyone loves what you guys are up too. This type of clever work and reporting! Keep up the very good works guys I’ve incorporated you guys to my personal blogroll.|
Bonita Foraker
Terrific article! This is the type of info that are meant to be shared across the net. Disgrace on the search engines for now not positioning this submit higher! Come on over and discuss with my site . Thank you =)|
Bobbie Tusing
Hello, for all time i used to check website posts here in the early hours in the daylight, since i enjoy to gain knowledge of more and more.|
Josef Blandy
What’s Happening i’m new to this, I stumbled upon this I’ve discovered It positively helpful and it has helped me out loads. I hope to give a contribution & help different customers like its aided me. Good job.|