feat(ui): improve loading state

This commit is contained in:
Gabe Kangas
2023-06-27 22:51:56 -07:00
parent ac8f9b3945
commit d60289c8bc
2 changed files with 7 additions and 4 deletions

View File

@@ -435,10 +435,13 @@ export const ClientConfigStore: FC = () => {
}, [hasLoadedConfig, accessToken]);
useEffect(() => {
updateClientConfig();
if (!(window as any).configHydration) {
updateClientConfig();
}
handleUserRegistration();
updateServerStatus();
if (!(window as any).statusHydration) {
updateServerStatus();
}
clearInterval(serverStatusRefreshPoll);
serverStatusRefreshPoll = setInterval(() => {
updateServerStatus();