I have a requirement to conditionally ignore actions based on state associated to a user.
Currently the ignoreAction function only has action as an argument, are we able to move the call to store.getState() before the ignoreAction check and passing in the state as a second argument? Something like below
const state = store.getState()
if (!action.type || ignoreAction(action, state)) {
return next(action)
}
Hi,
I have a requirement to conditionally ignore actions based on state associated to a user. Currently the ignoreAction function only has action as an argument, are we able to move the call to
store.getState()
before the ignoreAction check and passing in the state as a second argument? Something like belowThanks very much!