Reactjs 具有Redux表单的Redux开发工具

Reactjs 具有Redux表单的Redux开发工具,reactjs,redux,redux-form,redux-devtools,Reactjs,Redux,Redux Form,Redux Devtools,我在用它 我刚试过redux表单:很棒的工作,使用起来很有趣!然而,我猜每次我修改一个应用程序时,应用程序的状态都会改变。保存在字段中点击的每个新键。这会让你的体力恢复得很慢 以下是redux devtool dock面板上显示的应用程序状态更改: 以下是我如何将redux devtool链接到我的应用商店: const createStoreWithMiddleware = (() => { //DEv too only available in development

我在用它 我刚试过redux表单:很棒的工作,使用起来很有趣!然而,我猜每次我修改一个应用程序时,应用程序的状态都会改变。保存在字段中点击的每个新键。这会让你的体力恢复得很慢

以下是redux devtool dock面板上显示的应用程序状态更改:

以下是我如何将redux devtool链接到我的应用商店:

const createStoreWithMiddleware = (() => {

  //DEv too only available in development 
    if (__DEV__ && window && window.location) {

    return compose(
      applyMiddleware(thunk),
      devTools.instrument(),
      persistState(
        window.location.href.match(/[?&]debug_session=([^&]+)\b/)
      )
    )(createStore);
  } else {
    return compose(
      applyMiddleware(thunk)
    )(createStore);
  }
})();


function configureStore(initialState) {
  const store = createStoreWithMiddleware(rootReducer, initialState);

  if (module.hot) {
    // Enable Webpack hot module replacement for reducers
    module.hot.accept("./reducers", () => {
      const nextReducer = require("./reducers");
      store.replaceReducer(nextReducer);
    });
  }
  return store;
}

var appStore = configureStore();
export default appStore;

我想找到一种方法来避免redux开发工具获取redux表单更改。任何更好的解决方案都是受欢迎的:)

我认为这是你寻求的长生不老药。建议在抱怨redux表单冗长时使用它。

您可以在浏览器中转到redux devtools扩展的选项,并且有一个字段,您可以在其中指定应忽略的操作。在那里输入“redux form/CHANGE”,这样应该可以了。

谢谢,我会尽快试用,并让您知道它是否有效。谢谢!