From ad1e1e2f86bba4f396b9cc5b54968ecc3b381cc2 Mon Sep 17 00:00:00 2001 From: dotX12 Date: Sun, 26 Jan 2025 16:55:40 +0300 Subject: [PATCH] Update useEffect dependency array in hooks.tsx. --- authentication/src/ory/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentication/src/ory/hooks.tsx b/authentication/src/ory/hooks.tsx index a03dd8d..302e82e 100644 --- a/authentication/src/ory/hooks.tsx +++ b/authentication/src/ory/hooks.tsx @@ -181,7 +181,7 @@ export function LogoutLink(deps?: DependencyList) { // Something else happened! return Promise.reject(err); }); - }, deps); + }, [deps]); return () => { if (logoutToken) {