mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
chore: disable unrelated eslint rules
This commit is contained in:
parent
ff11a90a5e
commit
733e138233
20 changed files with 43 additions and 16 deletions
|
@ -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 ? (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue