How to rewrite history using proxyWithHistory? #787
Unanswered
pastelmind
asked this question in
Q&A
Replies: 3 comments 2 replies
-
This seems to work, but I don't understand what it's doing: store.undo()
store.value.count = 11
store.saveHistory() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe, there's a bug in |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @pastelmind . We have added You can try them out and give feedback/report issues if you can |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I "rewrite" history in-place using
proxyWithHistory()
?For example, given a history store that looks like this:
Current state will be:
What do I need to update it to this?
I tried this code:
While this seems to update
store.value
, it does not update the history snapshot at index 2; running anundo()
followed by aredo()
results instore.value
being 10, not 11.Beta Was this translation helpful? Give feedback.
All reactions