Skip to content
New issue

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

How to paginate? #38

Closed
tomsun opened this issue Jan 25, 2019 · 4 comments
Closed

How to paginate? #38

tomsun opened this issue Jan 25, 2019 · 4 comments

Comments

@tomsun
Copy link
Contributor

tomsun commented Jan 25, 2019

  • react-firestore version: 0.10.3

FirestoreCollection

This component allows you to interact with a Firestore collection. Using this component, you can access the collection at a given path and provide sort options, perform queries, and paginate data.

What would be the idiomatic way of paginating? limit is exposed, but I don't see startAt or startAfter in the interface of <FirestoreCollection>
https://firebase.google.com/docs/firestore/query-data/query-cursors

Thanks for providing a nice library!

@tomsun tomsun changed the title Pagination How to paginate? Jan 25, 2019
@sampl
Copy link
Contributor

sampl commented Jan 25, 2019

I'd like this too. Dupe of #3 though?

@tomsun
Copy link
Contributor Author

tomsun commented Jan 26, 2019

Oh, so not implemented - I was fooled by the wording in the README - yes duplicate indeed, sorry

@tomsun tomsun closed this as completed Jan 26, 2019
@green-arrow
Copy link
Owner

@tomsun - Sorry for not replying sooner. Pagination is definitely a feature that I want to add, however we haven't needed it as of yet. I am more than happy to accept some discussion around what the API should be in #3 though! 😄

@anonymousdeveloper96
Copy link

Paginate feature will be great 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants