updateDataSource() stops working (updating chart) after call SetState()

updateDataSource() stops working (updating chart) after call SetState()


I use 

updateDataSource() to update the chart when there are new data and it works.

But when I call a SetState() to update the screen UI, updateDataSource() stops working.
I know there are new data coming in because if I manually call setState(), the chart refresh.

I am trying to avoid the whole screen blinking when calling SetState() and that's why I need to call  updateDataSource() to only update the chart. Unfortunately, there are still times I need to call SetState() because other parts of the screen needs update.

Please help.

Thank you very much.


1 Reply

YG Yuvaraj Gajaraj Syncfusion Team February 28, 2022 01:43 PM UTC

Hi Peter, 

Greetings from Syncfusion. We have created the live update sample that will update the data using updateDataSource method, and we have called the setState using the button click event, but the reported issue is not reproduced at our end. We have attached the sample below which is used at the test phase, please try to reproduce the reported issue in that sample and get back to us. It will be more helpful to us to provide a solution sooner. 

  
Regards, 
Yuvaraj. 


Loader.
Up arrow icon