Have you ever struggled with modifying your Odt document while on the go? Well, DocHub has a great solution for that! Access this cloud editor from any internet-connected device. It enables users to Redo drawing in Odt files quickly and whenever needed.
DocHub will surprise you with what it offers. It has powerful capabilities to make whatever changes you want to your forms. And its interface is so easy-to-use that the whole process from start to finish will take you only a few clicks.
After you complete adjusting and sharing, you can save your updated Odt file on your device or to the cloud as it is or with an Audit Trail that contains all adjustments applied. Also, you can save your paperwork in its original version or turn it into a multi-use template - accomplish any document management task from anyplace with DocHub. Subscribe today!
hey everyone hope youre doing well so today were going to be continuing on our excited draw app and were going to be implementing the undo slash redo functionality um if you enjoy this kind of content please consider subscribing and lets get right into it so were going to start off with looking at a bit of the theory of how undo slash redo functionality generally works theres two main patterns that we can have a look at if you want to skip directly to the coding ill leave timestamps in the description um but yeah well start off with the theory here so to explain these patterns lets just have a quick look at the uh how the app works just now and then we can go on to the the two so if you imagine this is our current canvas and we have two elements what the state looks like is this object up here which is an array with two elements two objects representing the elements so how we got there is if you imagine we have started off with an empty array and lets just go through a sequen