fix: fix infinite loading screen
This commit is contained in:
parent
44e30f43ff
commit
f61a96ec1e
|
@ -46,13 +46,13 @@ export function AuthProvider(props: AuthProviderProps) {
|
|||
} catch (e) {
|
||||
Sentry.captureException(e);
|
||||
}
|
||||
|
||||
setLoading(false);
|
||||
}, [setUser, setLoading, client, tokenStorage]);
|
||||
}, [setUser, client, tokenStorage]);
|
||||
|
||||
useEffect(() => {
|
||||
loadUser();
|
||||
}, [loadUser]);
|
||||
loadUser().finally(() => {
|
||||
setLoading(false)
|
||||
})
|
||||
}, [loadUser, setLoading]);
|
||||
|
||||
const signIn: AuthContext['signIn'] = async (
|
||||
email: string,
|
||||
|
|
Reference in New Issue