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.
Closes #1160 by moving the fetching of resource types in the plan page to an
onMount
. Also manually resets activity subscription stores onresetActivityStores
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 hidesTimelineTimeDisplay
if no plan exists yet to avoid a flash ofundefined
time content, discovered while playing with the main fix in this PR.