Skip to content

How to reset undo log? #385

Answered by josdejong
rplantiko asked this question in Q&A
Jan 5, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You don't have to worry about performance and memory unless you're recreating the editor thousands of times. If you want to be sure, you can do a small experiment to see if you can notice any impact when recreating the editor.

I don't expect that the screen will flicker when recreating the editor, though you will lose for example the scroll position that the user had. Again, you can probably validate this in a few minutes by just trying it out.

If there is enough need for control over the history, we can think through an API for that.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rplantiko
Comment options

@josdejong
Comment options

Answer selected by rplantiko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants