Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/site/hooks/react-client/useNavigationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
return () => element.removeEventListener('scroll', handleScroll);
}
// We need this effect to run only on mount
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Check warning on line 37 in apps/site/hooks/react-client/useNavigationState.ts

View workflow job for this annotation

GitHub Actions / Quality checks

React Hook useEffect has missing dependencies: 'handleScroll', 'id', 'navigationState', and 'ref'. Either include them or remove the dependency array
};

export default useNavigationState;
Loading