You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original redux dispatch allow to pass more than one argument thats in result will be received in the middleware and all passed arguments will be logged. It's very useful and flexible. But dispatch function that passed to mapDispatchToProps handle only first argument and middleware always log array with that first argument.
This is a question regarding Redux, not React-Redux. In particular, this was heavily discussed in reduxjs/redux#1813 . As a quick summary of that thread, it won't work because the entire ecosystem assumes that only one thing is passed to dispatch at a time. If you're looking to batch up dispatched actions (especially to minimize the number of subscriber notifications), there's a variety of possible batching addons you can use, such as https://github.com/manaflair/redux-batch .
Original redux
dispatch
allow to pass more than one argument thats in result will be received in the middleware and all passed arguments will be logged. It's very useful and flexible. Butdispatch
function that passed tomapDispatchToProps
handle only first argument and middleware always log array with that first argument.Actually i didn't find any documentation about this way to use
dispatch
so it'll be nice to also clarify that moment.The text was updated successfully, but these errors were encountered: