zundo
zundo copied to clipboard
🍜 undo/redo middleware for zustand. <700 bytes
zundo v2
After a year of the v1, it's finally time for the next major release of zundo. The goal is to create a smaller bundle size, have an easier API, and...
How do I made `zundo` work with `subscribeWithSelector` in typescript? Wrapping `subscribeWithSelector` with zundo middleware unleashes Pandora's box and it does not make sense to me, a relatively new typescipt-er....
Let's say that there is a slow push operation to store a previous state, and then one that executes faster. Will it cause history to be out of sync with...
Hi, amazing middleware - I absolutely love it! I'm trying to find a way to find a way to execute a custom function whenever a state is saved, while cool-off...
I was thinking if it would be possible to add apis to check if it can undo or redo. I was thinking maybe: `canUndo` and `canRedo` which would return true...
This is a strange one because v1.2.2 doesn't seem to have many changes, but in my project, I have no type errors when using 1.2.1, when I upgrade to 1.2.2...
Now if I trying to call zundo funcs (undo/redo/clear) when undo / redo history is empty, zundo will return undefined instead of undo, redo, clear funcs. I have 6 different...
While this lib is now working with zustand v4, the types still aren't quite right when chaining with other middlewares. I'm currently in the middle of trying to fix this,...
right now create only returns the hook version