Editing text is extremely slow even for small texts
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 201
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
Hello,
I apologize in advance as this is my first issue raised on GitHub, and I may not be aware of all the rules that need to be followed when raising an issue.
Expected behavior : Writing text should be fluid both in the editing window and in the preview window
Current Behavior : When writing text in the editing window, the text does not show until I stop writing in either the editing window, nor the preview window. Also, when looking through the console, these messages appear every time I add or remove a symbol

In my code, I have a React useState that manages the value of my MDEditor value, as per the example and the component looks like this :

Do you have any idea what might be causing this issue?
Thank you for your help!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the typing lag in the React MDEditor setup shown in the issue and inspect the console messages produced on each character change. Trace the controlled value update and preview rendering path; done means small-text editing updates fluidly in both the editor and preview without the reported repeated messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100