CARTAvis / carta-frontend

Source code repository for the frontend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
20 stars 10 forks source link

Replace react-resize-detector #2433

Open YuHsuan-Hwang opened 2 weeks ago

YuHsuan-Hwang commented 2 weeks ago

react-resize-detector v9 is producing warnings with React 18. The child function pattern <ReactResizeDetector/> is removed from react-resize-detector v10. Only the useResizeDetector hook is supported, which can only applied with functional components. We could consider replacing react-resize-detector with blueprint <ResizeSensor/> + throttling.