April 2018
Intermediate to advanced
298 pages
6h 34m
English
Another way to view action data in Redux DevTools is to look at the state diff that results from dispatching the action. Instead of trying to glean the changes in state by looking at the entire state tree, this view only shows you what changed.
Let's try adding a new book to generate some actions. I'm going to add the book you're reading right now. First, I'll paste in the title of the book that generates a change event on the input element, which in turn dispatches a SET_NEW_BOOK_TITLE action. If you select the action, you should see the following:

The title value of the newBook state went from an empty string to the value ...
Read now
Unlock full access