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

The data rebuild twice so this make the read count from firebase double #160

Open
saedfarashat opened this issue Oct 22, 2023 · 0 comments

Comments

@saedfarashat
Copy link

on this code below iam trying to print the index

KrPaginateFirestore(
includeMetadataChanges: true,
query: firebaseFirestore
.collection('collection')
.orderBy('OrderBy1', descending: true)
.orderBy('OrderBy2', descending: true),
itemBuilder: (context, documentSnapshots, index) {
print(index);
},
shrinkWrap: true,
itemBuilderType: PaginateBuilderType.listView,
),

the result is
flutter: 0
flutter: 1
flutter: 2
flutter: 3
flutter: 4
flutter: 0
flutter: 1
flutter: 2
flutter: 3
flutter: 4

notic : i have only 5 items in collection

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

1 participant