-
1 votesanswersviews
NativeScript ngrx存储远程devtools
我正在使用带有Angular 2和TypeScript的NativeScript构建移动应用程序 . 我的IDE是VS Code . 我决定使用@ngrx / store来保持应用程序的状态 . 但是调试存储状态存在问题 . 我想使用redux-devtools,我已经读过,在我的情况下,我必须使用remote-redux-devtools . 问题是它应该与redux一起使用,我找不到任何指南如... -
1 votesanswersviews
在中间件中调度redux操作会导致意外行为
我试图理解redux中间件如何工作,在我的实验中我注意到从redux中间件调度一个动作可能会导致意外的行为 . 我将尝试通过模拟文件上传来解释此问题,如下所示: 我们有3个动作: const setProgress = (progress) => ({ type: SET_UPLOAD_PROGRESS, progress }); const setThumbnail = (thumbnai... -
2 votesanswersviews
在Redux-DevTools中使用Webpack HMR插件时,为什么App状态会重置?
I'm using webpack Hot Module Replacement(HMR) Plugin with Redux Devtools Chrome extension. However whenever the HMR runs, the Redux local app state resets to all the initial values. My webconfig is th...