diff --git a/src/hooks/useFirestoreCollectionWithAtom.ts b/src/hooks/useFirestoreCollectionWithAtom.ts index fb4ec621..a49ec98a 100644 --- a/src/hooks/useFirestoreCollectionWithAtom.ts +++ b/src/hooks/useFirestoreCollectionWithAtom.ts @@ -215,7 +215,7 @@ export function useFirestoreCollectionWithAtom( setDataAtom([]); suspended = false; } - if (nextPageAtom) setNextPageAtom({ loading: false, available: true }); + if (nextPageAtom) setNextPageAtom({ loading: false, available: false }); if (onError) onError(error); else handleError(error); }