Buffering Form Changes and Dispatches
Investigating Form Actions
With that cleanup done, back to work on our input forms. In the previous section, I mentioned that “there’s one problem with our text input that we need to address”, and promised we’d come back to that later. Later is now :)
Let’s type the letters “test” into the end of the “Unit Name” field, and look at the DevTools actions log:
We can see four different UNIT_INFO_UPDATE
actions in that list from typing “test” into the name input. If we look at the next-to-last action, we can see that after typing the ‘s’, the dispatched name was “Black Widow ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy