Skip to content

Commit 3242493

Browse files
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>
1 parent e3317d5 commit 3242493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/hooks/react-client/useNavigationState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const useNavigationState = <T extends HTMLElement>(
3434
return () => element.removeEventListener('scroll', handleScroll);
3535
}
3636
// We need this effect to run only on mount
37-
});
37+
}, []);
3838
};
3939

4040
export default useNavigationState;

0 commit comments

Comments
 (0)