Dispatch Recognition
Explore how to recognize and handle dispatch actions in Redux, focusing on updating the activeUserId reducer. Understand reducer composition and how to manage state updates to render the chat window properly.
We'll cover the following...
We'll cover the following...
Previously, we dispatched the action to the activeUserID reducer, but the reducer had not been told what to do with it.
Let’s fix this, but don’t forget to remove the console.log(user_id) after inspecting the logs.
Have a look at the ...