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
Issue on long text #603
Comments
@BenchBadr This is caused by code highlighting, which is re-rendered every time without lazy loading. |
I'm sorry, I can't find it by myself, how can I enable the lazy loading ? |
@BenchBadr Oh, there is currently no support, you need to implement it yourself react-md-editor/core/src/Types.ts Lines 97 to 106 in dabf155
|
I see, I'll need to have my own copy of everything. |
@BenchBadr did that help in your case? I have a similar problem and custom preview does not help in my case. |
Honestly I didn't dig this that much since then. |
Hello, firstly I want to thank all the contributors of this project because of it's high quality. I would like to draw your attention about an issue :
https://arltools.xyz/create
When the content is too long, (empirical) mostly when it exceeds 30,000 chars, it gets really slower to type, each character take 0.5 to 1 sec to be added which can be really disturbing.
I thought of making the
useState
text value update being done separately from the typing action but this is simply impossible using react-md-editor. The whole variable is rewritten for each added character, therefore, how can we make this work separately ? Like, chars would be added instantly when typed but may be slower to be displayed on preview.Thank you for your answers.
The text was updated successfully, but these errors were encountered: