NCGThompson / CS-485-Project-1

0 stars 0 forks source link

Improvements to auto-updates #29

Closed NCGThompson closed 8 months ago

NCGThompson commented 8 months ago

We need the data to update once every second. However, sometimes the data takes longer than a second to download. This increases the success rate of downloads by waiting for the last download to finish before starting a new one. Also, the components only update data when they are in the view-port. It directly checks if the component is visible in a way agnostic to tab or routing system, so we don't have to worry about changing other parts of the code. If the component has no data at all (as opposed to out of date data), then it will try to download new data even when not in the view-port.