mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 07:15:44 +00:00
fix: set isLoadingUser in useAuth hook
This commit is contained in:
@@ -45,6 +45,10 @@ const RequireAuth = ({ children }: RequireAuthProps) => {
|
|||||||
}
|
}
|
||||||
}, [userErrorResponse, setUser]);
|
}, [userErrorResponse, setUser]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setIsLoadingUser(isLoadingUserResponse);
|
||||||
|
}, [isLoadingUserResponse]);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(isLoadingUserResponse && !userResponse && !userErrorResponse) ||
|
(isLoadingUserResponse && !userResponse && !userErrorResponse) ||
|
||||||
(!userResponse && !userErrorResponse)
|
(!userResponse && !userErrorResponse)
|
||||||
|
|||||||
Reference in New Issue
Block a user