chore: disable unrelated eslint rules

This commit is contained in:
Kentai Radiquum 2024-08-23 05:12:46 +05:00
parent ff11a90a5e
commit 733e138233
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
20 changed files with 43 additions and 16 deletions

View file

@ -25,6 +25,7 @@ export function IndexCategoryPage(props) {
}
_loadInitialReleases();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [token]);
useEffect(() => {
@ -36,6 +37,7 @@ export function IndexCategoryPage(props) {
if (content) {
_loadNextReleasesPage();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);
const scrollPosition = useScrollPosition();
@ -43,10 +45,9 @@ export function IndexCategoryPage(props) {
if (scrollPosition == 98) {
setPage(page + 1);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [scrollPosition]);
// if (error) return <div>failed to load</div>;
return (
<>
{content && content.length > 0 ? (