I'm calling toast.success in redux reducer and I'm getting this error
You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.
I'm calling
toast.success
in redux reducer and I'm getting this errorWhat could be the cause and how to resolve this?
I have added
<Toaster/>
at the root component