I'm using ace editor wrapped by react-ace for my project.
How can I destroy all undo/redo history in certain moment when I need it?
I've tried this.aceRef.editor.destroy();
(just react ref bound with editor), but unfortunately it doesn't play well in some circumstances.
So, I just need to clean undo/redo session/history or something like that.
Any solution?