You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
Case 1: If I DO NOT use limit() in query then listen message is printed once when screen is rendered first time and also listen is called when something is changed in Firestore stream (eg. added new document / removed a document).
Case 2: If I use limit() in query then listen message is printed once when screen is rendered first time but listen is NOT called when something is changed in Firestore stream (eg. added new document / removed a document).
I have to use limit() to fetch one document according to set orderBy. I am 100% sure that limit() is not allowing stream to listen any event.
Kindly suggest how can I use limit with `listen' to fix this issue. Thanks a lot.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Stream listen is not called when limit is added in Firestore query in Dart / Flutter
I have used below code in my initState() function:
Case 1: If I DO NOT use limit() in query then listen message is printed once when screen is rendered first time and also listen is called when something is changed in Firestore stream (eg. added new document / removed a document).
Case 2: If I use limit() in query then listen message is printed once when screen is rendered first time but listen is NOT called when something is changed in Firestore stream (eg. added new document / removed a document).
I have to use limit() to fetch one document according to set orderBy. I am 100% sure that limit() is not allowing stream to listen any event.
Kindly suggest how can I use limit with `listen' to fix this issue. Thanks a lot.
The text was updated successfully, but these errors were encountered: