mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix refresh loop on web
This commit is contained in:
parent
fd38833787
commit
4fbe14a77b
1 changed files with 3 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue