0

我有一个 React/redux 应用程序,我正在使用 redux-devtools-extension,我希望能够像这样管理我的扩展功能:

composeWithDevTools({
  features: {
    pause: true, // start/pause recording of dispatched actions
    lock: true, // lock/unlock dispatching actions and side effects    
    persist: true, // persist states on page reloading
    export: true, // export history of actions in a file
    import: 'custom', // import history of actions from a file
    jump: true, // jump back and forth (time travelling)
    skip: true, // skip (cancel) actions
    reorder: true, // drag and drop actions in the history list 
    dispatch: true, // dispatch custom actions or action creators
    test: true // generate tests for the selected actions
  },
  // other options like actionSanitizer, stateSanitizer
});

但在我的代码中,我有:

composeWithDevTools(applyMiddleware(...middleware))

因此,当我尝试将 Features 作为第二个参数添加时,我得到一个错误,知道如何将它添加到我的 composeWithDevTools 中吗?谢谢你!

4

0 回答 0