Sometimes we have some event where we use undo redo, being inside this event we need to get the updated value and use it but instead of this, we have to use useEffect or some other tricks to get this value and then work with this. It'd be nice if we could get the value right away when undo redo was run and work with it further
Sometimes we have some event where we use undo redo, being inside this event we need to get the updated value and use it but instead of this, we have to use useEffect or some other tricks to get this value and then work with this. It'd be nice if we could get the value right away when undo redo was run and work with it further