0

feat(ui): improve loading state

This commit is contained in:
Gabe Kangas 2023-06-27 22:51:56 -07:00
parent ac8f9b3945
commit d60289c8bc
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
2 changed files with 7 additions and 4 deletions

View File

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

View File

@ -194,7 +194,7 @@ export const Content: FC = () => {
<> <>
<> <>
{appState.appLoading && ( {appState.appLoading && (
<Skeleton loading active paragraph={{ rows: 7 }} className={styles.topSectionElement} /> <div className={styles.topSectionElement} style={{ height: '30vh' }} />
)} )}
{showChat && !isMobile && <Sidebar />} {showChat && !isMobile && <Sidebar />}
<Row> <Row>