I am using highchart stock, and when I draw a million data, Every time if I update it for react hook, memory leak occurs about 50MB. Unfortunately, I tried to reproduce it in stackblitz, but it doesn't work. But there is our code for reference. Could you please let me know if this could be a problem?
Thank you for contacting us. At the first glance, your code seems to be fine, just a general tip about boost and turbo mode. Make sure to set it to a value above 0, i.e 1 to have it always enabled. Otherwise, your chart won't be boosted. Other than that, performing a loop 2 million times is quite a heavy operation, and it has nothing to do with Highcharts performance, but more with browser limitations.
Nevertheless, the Highcharts config seems fine (except for the boost tips), so I'd suggest optimizing your data and asking at more general React forums if you'll still encounter the memory leaks.
Do not hesitate to contact us again,
Best regards!