Remove eslint react-hooks/exhaustive-deps warnings

This commit is contained in:
chrox
2024-11-21 12:47:08 +01:00
parent 73d933ace4
commit 9bc11905f7
21 changed files with 40 additions and 1 deletions
@@ -135,6 +135,7 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => {
return () => {
eventDispatcher.offSync('iframe-single-click', handleSingleClick);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
useEffect(() => {