fusioncharts / react-fusioncharts-component

ReactJS component for FusionCharts JavaScript Charting library.
https://fusioncharts.github.io/react-fusioncharts-component/
MIT License
93 stars 33 forks source link

Bugfix/SUPPORT-2373 - Fixed ReactJS FusionCharts does not work in StrictMode #83

Closed gaurav-celestial closed 4 months ago

gaurav-celestial commented 4 months ago

Cause : dispose method was getting called one extra time in componentWillUnmount method in the strict mode which was causing setChartData function (in fusion charts constructor) run an extra time with unexpected arguments in case of rendering a map. Solution : prevented the extra call to dispose method.

Yaminim07 commented 4 months ago

LGTM