Replies: 1 comment
-
Listeners are called after the action already reached reducers, so it's not possible to intercept and replace the action. You would need to write a custom middleware for that :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just wondering if there's a way to safely modify an action in
redux-toolkit
listeners?It seems from the doc like they only respond to actions.
Is custom middleware required in order to modify actions?
Beta Was this translation helpful? Give feedback.
All reactions