When the document is large, the rendering is very sluggish and cannot slide
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 201
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
When the document is large, the rendering is very sluggish and cannot slide
My com
import MDEditor, { ContextStore } from "@uiw/react-md-editor";
import { ChangeEvent } from "react";
export interface MDEditorInputProps {
value?: string,
onChange?: any,
onHandleHanle?: (value?: string | undefined, event?: ChangeEvent<HTMLTextAreaElement> | undefined, state?: ContextStore | undefined) => void
}
const MDEditorInput = (props: MDEditorInputProps)=> {
const { value,onHandleHanle,onChange } = props;
const onChangeT = (value: string | undefined) => {
onChange(value);
if (onHandleHanle) {
onHandleHanle(value);
}
}
return (
<div>
<MDEditor
value={value}
onChange={onChangeT}
/>
</div>
);
}
export default MDEditorInput;
Test data :
react-md-editor version
"@uiw/react-md-editor": "^3.20.8",
react dev tool
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
Reproduce the sluggish scrolling with a large document using the supplied MDEditorInput example and the linked react-md-editor home data. Use React DevTools to identify the rendering bottleneck in the @uiw/react-md-editor v3.20.8 integration; done means large documents render and scroll responsively without breaking the shown onChange and onHandleHanle callbacks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100