1. 24
    Dispatch Multiple Asynchronous Redux Actions with Arguments
    2m 53s

Dispatch Multiple Asynchronous Redux Actions with Arguments

Share this video with your friends

Send Tweet

There are times when we need to provide input to our action dispatching functions that we use as handlers. A great use case in our game is when the player selects one of the cards as their answer. We need to communicate which card was selected so our state can transition properly.

To complicate the matter, when a player provides their answer, we want to fire a series of well times actions, with some of them needing this input. We have set up a nice pattern that will allow us to apply any arguments to any action created needed in a series of actions in an easy to follow manner.