feat(ui): more improvements to initial loading state

This commit is contained in:
Gabe Kangas
2023-06-28 07:52:35 -07:00
parent b4cab0ec7f
commit 6805a7c1db
4 changed files with 26 additions and 8 deletions

View File

@@ -412,6 +412,14 @@ export const ClientConfigStore: FC = () => {
} catch (e) {
console.error('error parsing status hydration', e);
}
try {
if ((window as any).configHydration && (window as any).statusHydration) {
sendEvent([AppStateEvent.Loaded]);
}
} catch (e) {
console.error('error sending loaded event', e);
}
}, []);
useEffect(() => {