Skip to content

Paging helper for Firestore queries #550

Open
@IchordeDionysos

Description

@IchordeDionysos

Hi,

Just thought how one could easily integrate some paging for a long list like an activity which should ideally not loaded all at once rather incrementally if the user needs to.

And my thought was: Well we could build something ourselves, but then I thought this is a rather repetitive task so I think it would be great to get this behavior in something like FirebaseUI.

The idea is we developer just give a query to Firebase UI and then all the heavy lifting get's take care of,

  • like checking if how many contents should be loaded initially (maybe there could be an option to help Firebase UI to determine how many should be loaded),
  • when new content should be loaded due to the scrolling position,
  • sending out delegate methods when to display a loader or better having a delegate method which returns a UIView which then gets displayed at the right end of the Table/CollectionView as a loader
  • keeping track of changes to documents and what content to load next
  • updating the local copy of array when new content gets loaded and so on.

What are your thought on this?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions