vedartm / paginate_firestore

A flutter package to simplify pagination with firestore data 🗃
https://pub.dev/packages/paginate_firestore
MIT License
113 stars 136 forks source link

Only push on new documents #80

Closed garrettApproachableGeek closed 3 years ago

garrettApproachableGeek commented 3 years ago

Related issue: https://github.com/vedartm/paginate_firestore/issues/72 Thanks @itssidhere for creating the issue

Added _mergeSnapshots function to only push on new items by document id onto previousList This allows for the order to be preserved, which was a noted concern with using a set.

vedartm commented 3 years ago

Hi @garrettApproachableGeek. I really appreciate you making this PR.

vedartm commented 3 years ago

@all-contributors please add @garrettApproachableGeek for code

allcontributors[bot] commented 3 years ago

@vedartm

I've put up a pull request to add @garrettApproachableGeek! :tada: