Undo/redo on entity store #618
-
I'm having an entity store, and I use StateHistoryPlugin to handle undo/redo. It works fine, except for one case :
When debugging, I can see that the undo calls an "update" on the entity. As far as I know, an update makes a partial update, it means it changes the property that are passed as parameter to the update, but don't touch the other property. I would expect the undo to make a set instead of an update. Can anybody explain me where I am wrong ?
after user action :
after undo, I expect
But I get
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you reproduce it on stackblitz, please? |
Beta Was this translation helpful? Give feedback.
-
I see the bug. When we call |
Beta Was this translation helpful? Give feedback.
I see the bug. When we call
update
, we merge the current entity with the new one. Please open an issue.