From 2fcaf3553e8cece2a9e07b788d0b7d219a98ec65 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Wed, 26 Oct 2022 07:19:03 -0400 Subject: [PATCH] Only try to login once for git gateway when page loads --- core/src/backends/git-gateway/AuthenticationPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/backends/git-gateway/AuthenticationPage.tsx b/core/src/backends/git-gateway/AuthenticationPage.tsx index a6be7d42..edbe8433 100644 --- a/core/src/backends/git-gateway/AuthenticationPage.tsx +++ b/core/src/backends/git-gateway/AuthenticationPage.tsx @@ -60,7 +60,8 @@ const GitGatewayAuthenticationPage = ({ onLogin(window.netlifyIdentity.currentUser()); window.netlifyIdentity.close(); } - }, [loggedIn, onLogin]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); const handleIdentityLogin = useCallback( (user: User) => {