mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix table infinite loop if user doesn't have read permissions
This commit is contained in:
@@ -215,7 +215,7 @@ export function useFirestoreCollectionWithAtom<T = TableRow>(
|
||||
setDataAtom([]);
|
||||
suspended = false;
|
||||
}
|
||||
if (nextPageAtom) setNextPageAtom({ loading: false, available: true });
|
||||
if (nextPageAtom) setNextPageAtom({ loading: false, available: false });
|
||||
if (onError) onError(error);
|
||||
else handleError(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user