-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
editor freezes on rendering words as spans #1979
Comments
little explanation edit_freeze.webm |
@cashwanikumar Each mouse click/ key press triggers an update in the editor. This update usually go through all extensions. Try excluding extensions and retesting to detect which one is causing the most performance issues. |
@IdrissMahjoubi Fully agree!! and thanks for the quick reply. Also, do you think if we wrap using react memo here will cause any issue? this I believe surely can stop the remirrorPortal component to update unnecessarily |
@cashwanikumar You can try this, but the main issue is still assigning a |
Summary
I'm building an editor where each word will be rendered as
span
with additional attributes attached to each span. However, the editor freezes for bigger content. If I start usingEntityReferenceExtension
, it starts to freeze even more often.Steps to reproduce
Expected results
You should be able to edit the content and even draw annotations.
Actual results
The page freezes on load and unable to edit anything.
Possible Solution
Not sure what is blocking the render to freeze. spent enough time debugging it and found some
mouse
event is blocking the render if I check the performance tab.Screenshot(s)
Screen.Recording.2023-01-11.at.17.37.36.mov
In this video, I'm trying to click on the editor to make changes but I couldn't
Please add a sponsored label to this issue as we are sponsors.
The text was updated successfully, but these errors were encountered: