Open Karpengold opened 2 years ago
react-chart-portal component causes this issue. It helps but it would be nice to have some better solution
useEffect(() => {
return () => {
const portal = document.getElementById('react-charts-portal');
portal && portal.parentNode?.removeChild(portal);
};
}, []);
Hi, I'm using 2 charts on one page, after directing from this page to another page with the table I got performance issues with scrolling (it is not smooth). If I reload page, remove charts or redirect from other page without react-charts everything works fine. Unmounting event is being triggered during navigation between pages.
There is a chart component