NASA-AMMOS / aerie-ui

The client application for Aerie.
https://nasa-ammos.github.io/aerie-docs/
MIT License
28 stars 4 forks source link

Avoid SSR fetch #1180

Closed AaronPlave closed 3 months ago

AaronPlave commented 3 months ago

Closes #1160 by moving the fetching of resource types in the plan page to an onMount. Also manually resets activity subscription stores on resetActivityStores since otherwise the user has to wait until the store is next used (next time the user loads some plan) in order for them to update which can cause the stale activities to temporarily be displayed on a different plan. Also hides TimelineTimeDisplay if no plan exists yet to avoid a flash of undefined time content, discovered while playing with the main fix in this PR.