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.