What can I do to optimize performance when my editor is updated every time? #153
Unanswered
Michael-indochat
asked this question in
Q&A
Replies: 1 comment
-
Thanks for creating the discussion board |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a custom suite to calculate the text length and editor content, and pass it out to the outer state, so that my Page can display specific UI according to these states
When the editor preset mount is completed, I will give the editor a piece of initialValue data, and at this time I will pass the data to the parent layer's Page to update the state
I am now adding a listener. Every time I change the content of the editor, I will update these states to the parent layer, but I suspect that this approach will cause performance problems. Is there a recommended way to fix it?
CustomPlugin source code
Beta Was this translation helpful? Give feedback.
All reactions