Generic Reducer Logic for Editing Entities
We'll cover the following...
Before we create the actual core reducer logic, we’ll add some utility functions to encapsulate behavior. We’ll have a small function to update state.entities
, and another to update state.editingEntities
. We’ll also create a small function to access a given Redux-ORM Model instance, and ask it to copy its entire contents into a plain JS object:
...