谁能提供一个从Redux-Logger中过滤操作的提示?我正在尝试过滤来自Redux Form的@@redux-form/BLUR之类的东西。
基于这里的Redux Logger配方https://github.com/evgenyrodionov/redux-logger#log-everything-except-actions-with-certain-type
Log everything except actions with certain type
createLogger({
predicate: (getState, action) => action.type !== AUTH_REMOVE_TOKEN
});根据上面引用的方法,我希望提供一个具有类似格式的表达式的语句,并返回false。我在日志中成功地传递了折叠选项,所以我不会怀疑我在applyMiddlewear()中做错了什么。
predicate:(getState, action) => action.type !== @@redux-form/FOCUS || @@redux-form/BLUR || @@redux-form/FOCUShttps://stackoverflow.com/questions/44572341
复制相似问题