zundo icon indicating copy to clipboard operation
zundo copied to clipboard

🍜 undo/redo middleware for zustand. <700 bytes

Results 29 zundo issues
Sort by recently updated
recently updated
newest added

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...

enhancement
help wanted

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....

good first issue
question

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...

question

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...

enhancement

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...

enhancement
help wanted

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...

help wanted

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...

enhancement
help wanted
good first issue

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,...

bug

right now create only returns the hook version

enhancement

Left some todos in the code with some tricky typescript needs

enhancement