ant-design / pro-editor

🕹️ The Ultimate Editor UI Framework and Components
https://pro-editor.antdigital.dev
MIT License
199 stars 25 forks source link

:zap: feat: use memo wrapper in markdown #125

Closed ONLY-yours closed 8 months ago

ONLY-yours commented 8 months ago

在单独用这个组件的时候不明显,但是一到流式输出的时候就会发现 dom 一直在重新渲染,一定得 memo 包裹下,不然长的时候渲染性能爆炸

github-actions[bot] commented 8 months ago

🎊 PR Preview 7c7382f7b8f947de67753f04d5a99fd9a47c5dd5 has been successfully built and deployed to https://ant-design-pro-editor-preview-pr-125.surge.sh

:clock1: Build time: 74.022s

🤖 By surge-preview

codecov-commenter commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b96b378) 81.51% compared to head (19b310b) 81.51%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #125 +/- ## ======================================= Coverage 81.51% 81.51% ======================================= Files 432 432 Lines 26886 26891 +5 Branches 1232 1233 +1 ======================================= + Hits 21916 21921 +5 Misses 4970 4970 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 8 months ago

:tada: This PR is included in version 0.34.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: