mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 12:49:37 +03:00
feat(ui): improve loading state
This commit is contained in:
parent
ac8f9b3945
commit
d60289c8bc
2 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -194,7 +194,7 @@ export const Content: FC = () => {
|
|||
<>
|
||||
<>
|
||||
{appState.appLoading && (
|
||||
<Skeleton loading active paragraph={{ rows: 7 }} className={styles.topSectionElement} />
|
||||
<div className={styles.topSectionElement} style={{ height: '30vh' }} />
|
||||
)}
|
||||
{showChat && !isMobile && <Sidebar />}
|
||||
<Row>
|
||||
|
|
Loading…
Reference in a new issue