Fix refresh loop on web

This commit is contained in:
Jackson Harper
2023-11-02 11:11:05 +08:00
parent fd38833787
commit 4fbe14a77b

View File

@ -163,15 +163,10 @@ export function HomeFeedContainer(): JSX.Element {
}
const mode = router.query['mode']
// intentionally not watching queryInputs here to prevent infinite looping
// intentionally not watching queryInputs and performActionOnItem
// here to prevent infinite looping
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
setMode,
setQueryInputs,
router.isReady,
router.query,
performActionOnItem,
])
}, [setMode, setQueryInputs, router.isReady, router.query])
const hasMore = useMemo(() => {
if (!itemsPages) {