When editing an entity, dispatching the Edit action will clone the entity. If the entity being edited matches the currently edited entity, if there is one, by entity key, then the state should remain unchanged, rather than cloning the original entity again. This will ensure that subsequent dispatches of Edit for the same entity will not overwrite any changes that may have been made since the first dispatch.
When editing an entity, dispatching the
Edit
action will clone the entity. If the entity being edited matches the currently edited entity, if there is one, by entity key, then the state should remain unchanged, rather than cloning the original entity again. This will ensure that subsequent dispatches of Edit for the same entity will not overwrite any changes that may have been made since the first dispatch.