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条评论
الفابلاگ قیمت
الفابلاگ
Juliann Prophett
My family members every time say that I am killing my time here at net, however I know I am getting experience every day by reading thes pleasant posts.|
selection of modern and classic books waiting to be discovered. All free and available in most ereader formats. download free books https://www.skylineuniversity.ac.ae/advisory-council
whoah this blog is wonderful i really like reading your articles. Keep up the great paintings! You realize, a lot of people are hunting round for this info, you could help them greatly.
Marvin Foules
Hello there, just changed into aware of your weblog through Google, and located that it’s truly informative. I am gonna watch out for brussels. I will be grateful if you proceed this in future. Lots of folks will likely be benefited out of your writing. Cheers!|
Terrence Schons
You ought to be a part of a contest for one of the highest quality blogs on the web. I am going to highly recommend this website!|