You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just added undo/redo feature to my app and faced a few issues with session storage.
Store resets after page reload, but it should not. But after that I can still undo my changes and store roll back to two steps before.
Did I implement Zundo improperly? Or may be there is a problem somewhere else?
Thanks for the reproduction. I should update the documentation, but you'll need to put persist around both zustand stores. This issue has a solution: #121 (comment)
Hey!
I've just added undo/redo feature to my app and faced a few issues with session storage.
Store resets after page reload, but it should not. But after that I can still undo my changes and store roll back to two steps before.
Did I implement Zundo improperly? Or may be there is a problem somewhere else?
Here is my store:
The text was updated successfully, but these errors were encountered: