fix and update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user