Replies: 1 comment
-
Because we need to listen to state changes: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm submitting a...
Current behavior
We introduced Akita in our projects recently. The store and query abstractions provide a good way to encapsulate their respective functionalities. With that in mind, we wanted to also encapsulate the undo/redo. It felt natural to expose them as methods of the various
Store
s, as the documentation states that:I was surprised, though, as the state history plugin requires a query. We ended up with methods like
EntityQuery#undo(entityId)
, which feels out of place, as I think queries are supposed to only query.Expected behavior
Could you elaborate (or document) why queries are needed for the state history, and not directly a store?
Beta Was this translation helpful? Give feedback.
All reactions