feat(ui): improve loading state
This commit is contained in:
parent
ac8f9b3945
commit
d60289c8bc
@ -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();
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user