maxUndoDepth

How many entries history.undo() can go back, and likewise for history.redo(). Each updateAsync that changes the document is one entry; the oldest is dropped once a stack is full. Must be a positive integer, otherwise construction throws YorkieException with ErrInvalidArgument. Defaults to 50. A reverse entry keeps a copy of the content it would restore, so a larger depth holds more memory.