Skip to content

Bugfix: Set value after setting options#2121

Open
moh-incom wants to merge 1 commit into
securingsincity:mainfrom
moh-incom:main
Open

Bugfix: Set value after setting options#2121
moh-incom wants to merge 1 commit into
securingsincity:mainfrom
moh-incom:main

Conversation

@moh-incom
Copy link
Copy Markdown

What's in this PR?

If the user provided a very large value before mounting the editor, the browser would hang on mount because of a lot of expensive style recalculations even when using virtualized rendering, since the options would get applied too late.

List the changes you made and your reasons for them.

Apply options before setting the value to ensure that virtualized rendering is initialized before setting and rendering the potentially large text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant