uiwjs / uiwjs/react-md-editor

Editing text is extremely slow even for small texts

Open
#313 1 comment 0 reactions 0 assignees View on GitHub

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
image

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 :
image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.