简体   繁体   English

反应NPM软件包以防止,搜索和监视状态发生变化的地方

[英]React NPM packages to prevent, search and monitor places where state is mutated

Do you know any worth recommending npm packages (for the DEV environment needs) to find spots in React app where redux store state is mutated ? 您是否知道有什么值得推荐的npm软件包(用于DEV环境的需求)来发现React应用中redux存储状态发生了变化的地方?

Currently I'm using Redux Freeze State package but unfortunatelly the indicated package is outdated, not supported any more and causes IE11 arguments caller exception. 当前,我正在使用Redux Freeze State软件包,但是很遗憾,指示的软件包已过时,不再受支持,并导致IE11参数调用方异常。

https://www.npmjs.com/package/redux-freeze-state https://www.npmjs.com/package/redux-freeze-state

import { createStore } from 'redux';
import freezeState from 'redux-freeze-state';

let reducer = ...
let store = createStore(freezeState(reducer));

Yes, there's several, and I have them listed in the Redux DevTools#Linting section of my Redux addons catalog . 是的,有几个,我在Redux附加组件目录的Redux DevTools#Linting部分中列出了它们。

Listing those specifically: 具体列出这些:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM