forked from github/plane
fix: adding loading screen on the home page.
This commit is contained in:
parent
b31041726b
commit
ae077d06e8
@ -77,9 +77,14 @@ export const SignInView = observer(() => {
|
||||
);
|
||||
|
||||
const mutateUserInfo = useCallback(() => {
|
||||
fetchCurrentUser().then((user) => {
|
||||
handleLoginRedirection(user);
|
||||
});
|
||||
setLoading(true);
|
||||
fetchCurrentUser()
|
||||
.then((user) => {
|
||||
handleLoginRedirection(user);
|
||||
})
|
||||
.catch(() => {
|
||||
setLoading(false);
|
||||
});
|
||||
}, [fetchCurrentUser, handleLoginRedirection]);
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user