1. 21
    Using the Response from an Async Thunk to Update the Redux State
    1m 1s

Using the Response from an Async Thunk to Update the Redux State

InstructorJamund Ferguson

Share this video with your friends

Send Tweet

Any data coming back from our thunk's payloadCreator function is returned in the action payload. Here we'll look at the builder case for checkoutCart.fulfilled and type the action with PayloadAction<{ success: boolean }> and then update the global state based on that payload response.