When editing larger documents it struggles a bit. A possible solution would be to implement a diff algorithm.
How large is your document, and how complex is your behavior? Can you give repro steps?
Since we use persistent data and aggressively avoid re-rendering, the size of the document should generally not be a problem unless there is a bottleneck somewhere.
Also, some more details on the structure of your document would help pinpoint any issues. Do you have especially long paragraphs?
Sorry that I haven't posted an example yet, attempting to figure out exactly the root cause so that I can avoid giving extra work. Once I can pin point i will create a paste bin with an example.
Awesome, thanks!
I will close the issue for the time being, since I identified that the bottleneck was on integration layer not on draftjs iteself.
Cool, thanks for following up.
Creating new content with 9999 "hello" words in both Draft homepage and Facebook Notes, then editing text. The slow performance appear. (in a scenario I have only one block)
I tried with contenteditable, it's okay when editing.
How can I avoid this? :smile:
Most helpful comment
Creating new content with 9999 "hello" words in both Draft homepage and Facebook Notes, then editing text. The slow performance appear. (in a scenario I have only one block)
I tried with contenteditable, it's okay when editing.
How can I avoid this? :smile: