The RealtimeStatistics widget periodically fetches data on each new momentum, but does not update the RealtimeTxsChart widget with the newly retrived data. The new data is only loaded when navigating from another tab.
Why?
The RealtimeTxsChart widget generates the Znn and Qsr spots data when the widget is initialized in the initState method.
This method is only called once when the widget is created. When the stream is updated, the widget gets rebuild but does not generate new spots.
How?
The RealtimeTxsChart widget must generate the Znn and Qsr spots data whenever the widget configuration changes by overriding the didUpdateWidget method.
What?
The
RealtimeStatistics
widget periodically fetches data on each new momentum, but does not update theRealtimeTxsChart
widget with the newly retrived data. The new data is only loaded when navigating from another tab.Why?
The
RealtimeTxsChart
widget generates the Znn and Qsr spots data when the widget is initialized in theinitState
method.This method is only called once when the widget is created. When the stream is updated, the widget gets rebuild but does not generate new spots.
How?
The
RealtimeTxsChart
widget must generate the Znn and Qsr spots data whenever the widget configuration changes by overriding thedidUpdateWidget
method.Anything else?
This PR depends on PR https://github.com/zenon-network/syrius/pull/7; otherwise no chart will be displayed.