uiwjs / uiwjs/react-md-editor

When the document is large, the rendering is very sluggish and cannot slide

Open
#524 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

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 home data

react-md-editor version

    "@uiw/react-md-editor": "^3.20.8",

react dev tool

image

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.