Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

feat(ui): improve loading state

Gabe Kangasbf6bb8295e6b
diff --git a/web/components/stores/ClientConfigStore.tsx b/web/components/stores/ClientConfigStore.tsx
index 45e4c3290c..8751217e15 100644
--- a/web/components/stores/ClientConfigStore.tsx
+++ b/web/components/stores/ClientConfigStore.tsx
@@ -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();
diff --git a/web/components/ui/Content/Content.tsx b/web/components/ui/Content/Content.tsx
index 94b2d720de..0c546f9eb5 100644
--- a/web/components/ui/Content/Content.tsx
+++ b/web/components/ui/Content/Content.tsx
@@ -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>