Closed hsavit1 closed 2 months ago
thanks for making this very useful lilbrary!
id like to disable my undo button if there are no undo operations to perform. similarly id like to disable the redo button if there are no futureStates. I think this would be a nice convenience method on the library to do this check
Thanks for the kind words!
You can disable undo button if there are no pastStates and disable the redo button if there are no futureStates.
pastStates
futureStates
https://github.com/charkour/zundo#going-back-in-time
thanks for making this very useful lilbrary!
id like to disable my undo button if there are no undo operations to perform. similarly id like to disable the redo button if there are no futureStates. I think this would be a nice convenience method on the library to do this check