Implementing Pilot Deletion
Explore how to implement deletion functionality for Pilot entries in a Redux store. Learn to add delete buttons in a React list, handle event propagation, and update reducers to manage UI and editing state consistently.
We'll cover the following...
We'll cover the following...
We should now be able to dispatch an ENTITY_DELETE action to delete a given Pilot entry from the store. All we need to do now is add delete buttons to our PilotsListRow components, and hook them up to dispatch the action.
We’ll add another column to the Pilots list, and show a red circular X button for each row. Clicking the button will delete the item.
Commit 128b2ac: Add the ability to delete individual Pilot entries
features/pilots/PilotsList/PilotsListHeader.jsx