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