bezier-chart icon indicating copy to clipboard operation
bezier-chart copied to clipboard

Graph adds previous points on hot refreshes and setState

Open chapmacl opened this issue 3 years ago • 0 comments

I noticed something weird with my graphs being that the data, not the graph, was being reloaded during hot refreshes, and also by calling setState. The code is basically copied from the pub.dev example, with the data being from my database.

Here is the original. The graph exists inside of a Futurebuilder and the data is from Firebase. 117871772_223770358975544_3833334334188104945_n

Then after hot refreshing (identical behavior whenever I called setState) 117877437_1376240742764323_5520555213279951437_n

And after awhile it becomes very apparent something isn't correct 118007769_634023524164865_2800617718717701653_n

chapmacl avatar Aug 15 '20 20:08 chapmacl