bezier-chart
bezier-chart copied to clipboard
Graph adds previous points on hot refreshes and setState
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.
Then after hot refreshing (identical behavior whenever I called setState)
And after awhile it becomes very apparent something isn't correct