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

Lot of Reads in firestore when isLive set to true, Version 1.0.3 #140

Open SalemAlnakhbi opened 2 years ago

SalemAlnakhbi commented 2 years ago

Hello, first thank u for this wonderful package, the Problem is i have a lot of posts, when i navigate first time to the posts screen it's loads the posts as it says in itemsPerPage, like ex: 5 posts -everything is okay till now-, but if i scroll down to 100 post and i close the app and then go to posts screen again it loads the whole 100 posts that i scroll down before and when i check the firestore reads it counts them all even if i do not scroll down -so it's counts 100 read- this Problem is happening only when isLive option is set to true, actually i don't need to set isLive to true but when i set it to false the loading time is too much -which open up another problem- i hope u guys fix these two problems as soon as u could thank u and good look -excuse my bad English though-