Have you ever had trouble with modifying your EGT document while on the go? Well, DocHub comes with a great solution for that! Access this cloud editor from any internet-connected device. It enables users to Redo drawing in EGT files quickly and whenever needed.
DocHub will surprise you with what it provides you with. It has robust capabilities to make any updates you want to your paperwork. And its interface is so intuitive that the whole process from start to finish will take you only a few clicks.
As soon as you finish editing and sharing, you can save your updated EGT file on your device or to the cloud as it is or with an Audit Trail that includes all modifications applied. Also, you can save your paperwork in its original version or convert 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