fix and update

This commit is contained in:
lendry
2026-06-30 23:18:53 +03:00
parent 6ee3ffe0a5
commit 4b2ade9354
6 changed files with 17 additions and 41 deletions

View File

@@ -142,7 +142,9 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
}
const onReady = () => setIsApiReady(true);
const onNotReady = () => {
setIsApiReady(false);
if (!initialBootstrapDoneRef.current) {
setIsApiReady(false);
}
};
const unsubReady = subscribeApiReady(onReady);
const unsubNotReady = subscribeApiNotReady(onNotReady);