Skip to content Skip to sidebar Skip to footer

Firebase Paging Data. Is It Possible?

I have a function which basically reads data from firebase. I am trying to implement paging. Please see what i tried. I have seen other posts on this website but they are not very

Solution 1:

You can't skip a specific number of records. But you can tell Firebase at which item to start by specifying startAt: "keyAtWhichToStart".

The reason for not having offset based queries is that they don't work well in the context of realtime updates, which is what the Firebase Database was designed for.

I recommend also reading some of the many previous questions on pagination in the Firebase Realtime Database.

Post a Comment for "Firebase Paging Data. Is It Possible?"