plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.25k stars 2.05k forks source link

performance issues when building custom components using dash-component-boilerplate #2966

Closed manyuemeiquqi closed 1 month ago

manyuemeiquqi commented 1 month ago

When using the [dash-component-boilerplate] to build my custom React component, the component becomes very sluggish. This component is related to rendering graphics on a canvas.

React framework show this

lazy1

and when i use in dash, show this lazy

CNFeffery commented 1 month ago

@manyuemeiquqi Can you attach your custom component source code

manyuemeiquqi commented 1 month ago

@manyuemeiquqi Can you attach your custom component source code

https://github.com/manyuemeiquqi/canvas-for-dash You can run this repo

run for dash

python usage.py 

run for react

npm i
npm run start

click 上传文件 and upload image file,then click create mode button to draw polygon

CNFeffery commented 1 month ago

@manyuemeiquqi works fine for me:

demo