briebug / ngrx-auto-entity

NgRx Auto-Entity: Simplifying Reactive State
https://briebug.gitbook.io/ngrx-auto-entity/
Other
66 stars 12 forks source link

Edit action should not replace edited entity if key matches #143

Closed jrista closed 4 years ago

jrista commented 4 years ago

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.