We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, thanks for this useful hook.
I noticed when I do an add the hasMore is set to false.
const {items, loading, loadingMore, hasMore, loadMore} = usePagination( app .firestore() .collection(CHAT_COLLECTION) .where('room', '==', roomId) .orderBy('created', 'desc'), { limit: MAX_LIMIT } );
then later:
app .firestore() .collection(CHAT_COLLECTION) .add({ id: random(), message, from: userId, created: new Date(), room: roomId });
After the add, hasMore is set to false even though there are more documents in the collection
hasMore
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey, thanks for this useful hook.
I noticed when I do an add the hasMore is set to false.
then later:
After the add,
hasMore
is set to false even though there are more documents in the collectionThe text was updated successfully, but these errors were encountered: