...

/

Code Cleanup

Code Cleanup

We'll cover the following...

Code Cleanup

In Connected Lists, Forms, and Performance, we connected our lists directly to Redux, set up basic editing for the UnitInfo form, and added the ability to toggle “editing” mode for a selected Pilot. This time, we’ll look at some advanced techniques for managing form change events, implement editing for model entries, and use a custom reducer structure to handle feature logic.

But, before we dive in to the real work for this section, we’ve got a few bits of cleanup that will help us later.

Handling Data Reloads

There’s a problem with the current entitiesReducer logic. If we click the “Load Unit Info” button twice in a session, the reducer will try to load the same sample data again, ...