From e3317d596cfe95165d8639fa9ee1b4b81fee11f8 Mon Sep 17 00:00:00 2001 From: Monsef Noubadji <67560520+Monsef-Noubadji@users.noreply.github.com> Date: Thu, 14 Aug 2025 17:34:58 +0100 Subject: [PATCH 1/2] Update(useNavigationState): removed eslint + deps array from useEffect Signed-off-by: Monsef Noubadji <67560520+Monsef-Noubadji@users.noreply.github.com> --- apps/site/hooks/react-client/useNavigationState.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/site/hooks/react-client/useNavigationState.ts b/apps/site/hooks/react-client/useNavigationState.ts index dbdb093ac6e25..435a7c8843c2e 100644 --- a/apps/site/hooks/react-client/useNavigationState.ts +++ b/apps/site/hooks/react-client/useNavigationState.ts @@ -34,8 +34,7 @@ const useNavigationState = ( return () => element.removeEventListener('scroll', handleScroll); } // We need this effect to run only on mount - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }); }; export default useNavigationState; From 32424938fddec3a526801428a05d8578727989ed Mon Sep 17 00:00:00 2001 From: Monsef Noubadji <67560520+Monsef-Noubadji@users.noreply.github.com> Date: Thu, 14 Aug 2025 18:27:26 +0100 Subject: [PATCH 2/2] Update apps/site/hooks/react-client/useNavigationState.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Monsef Noubadji <67560520+Monsef-Noubadji@users.noreply.github.com> --- apps/site/hooks/react-client/useNavigationState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/hooks/react-client/useNavigationState.ts b/apps/site/hooks/react-client/useNavigationState.ts index 435a7c8843c2e..ba1733174515d 100644 --- a/apps/site/hooks/react-client/useNavigationState.ts +++ b/apps/site/hooks/react-client/useNavigationState.ts @@ -34,7 +34,7 @@ const useNavigationState = ( return () => element.removeEventListener('scroll', handleScroll); } // We need this effect to run only on mount - }); + }, []); }; export default useNavigationState;