feat(tv): fix home page loading skeletons and initialize auth/network status synchronously

This commit is contained in:
Fredrik Burmester
2026-05-27 10:40:48 +02:00
parent 05d9b8f32c
commit 82eaf62354
8 changed files with 265 additions and 45 deletions

View File

@@ -35,8 +35,8 @@ async function checkApiReachable(basePath?: string): Promise<boolean> {
}
export function NetworkStatusProvider({ children }: { children: ReactNode }) {
const [isConnected, setIsConnected] = useState(false);
const [serverConnected, setServerConnected] = useState<boolean | null>(null);
const [isConnected, setIsConnected] = useState(true);
const [serverConnected, setServerConnected] = useState<boolean | null>(true);
const [loading, setLoading] = useState(false);
const [api] = useAtom(apiAtom);
const queryClient = useQueryClient();