Currently, when changing states in a component, I subscribe the state to a store which updates when a function I call finishes. I do this by:
useAirQualityStore.g