Comments (17)
I have the same problem, what i see that Stream is emitting too much events (9 in total). On event no.1 I receive empty List<DocumentSnapshot>
, then on Event no.2 I receive data that I need, and then on events no. 3 to no. 9 I again receive empty List<DocumentSnapshot>
. This is why list is empty.
from geoflutterfire.
@momoDragon this issue should now be resolved by #14. Please verify the same 😄
from geoflutterfire.
Thanks Darshan. New update solved the bug. Keep it up :)
from geoflutterfire.
Ok after cleaning the project and running fresh. Its all good now. Thanks. Safe to close the issue now. Thanks alot again. Very Very much appreciated 🥇
from geoflutterfire.
The stream builder builds then disappears. I can see the content flash for a split second.
from geoflutterfire.
Yup. I have been receiving empty data too hence the streambuilder flashing. I had to force call setstate after 3 sec of the initial build to get the intended data
from geoflutterfire.
Darshan, streambuilder data is not updating when i change data on cloud firestore. I have to press hot reload to get the new data.
from geoflutterfire.
@DarshanGowda0 fixed it for me on 2.0.3
from geoflutterfire.
@japborst can u try getting data with streambuilder and then update the data on the database and see if the data has updated or not. Because in my case the streambuilder rebuilds but it still get back the old data
from geoflutterfire.
@DarshanGowda0
Also when i update the data on cloud, the number of docs i get back increases.
- I run the app
- I update the data on the db
- i have print(snapshot.data.length) and i am getting back the length as 2 instead of 1.
- edits the data
- print(snapshot.data.length); gives me 3 instead of 1. so every time when i edit a doc the length increases by 1.
while all this is happening, none of the document snapshot have the latest data.
Hot reload will update the data and remove the extra documents.
from geoflutterfire.
@momoDragon streamBuilder is reflecting the changes as expected. But, I'm able to reproduce the duplication of data on my side too. I'm working on this rn.
from geoflutterfire.
@DarshanGowda0 any update? Because i need the plugin the work
from geoflutterfire.
@momoDragon sorry for the delay! #19 should fix the breaking changes 😄
from geoflutterfire.
@DarshanGowda0 Issue is Still happening. I am running version 2.0.3+2;
I/flutter ( 4404): eE8BfMJm3OfNLQHq7cTYrv651YJ3
I/flutter ( 4404): eE8BfMJm3OfNLQHq7cTYrv651YJ3
I/flutter ( 4404): bAqvAifIRXfHUw7M3yDO6M73ZwY2
I/flutter ( 4404): bAqvAifIRXfHUw7M3yDO6M73ZwY2
I/flutter ( 4404): oCNXsjiFbXbcHkX4j1ox7deyPma2
I/flutter ( 4404): oCNXsjiFbXbcHkX4j1ox7deyPma2
I/flutter ( 4404): a2SDIgb5DAbUteITPhckQpvtV2K3
I/flutter ( 4404): a2SDIgb5DAbUteITPhckQpvtV2K3
I/flutter ( 4404): GpF2dVMLtEUsDp8sX3pJJmio1OK2
I/flutter ( 4404): GpF2dVMLtEUsDp8sX3pJJmio1OK2
I/flutter ( 4404): kcmQnsJCNfaHWy0oeWmxGCfXDI23
This is the data that is being printed. as u can see there are duplicate ids. this happends when i edit a doc.
from geoflutterfire.
I got 2 events for one entry as well. Latest version
from geoflutterfire.
There still seems to be a problem. When I use StreamBuilder with the following stream:
geoflutterfire .collection(collectionRef: Firestore.instance.collection(collectionPath)) .within( center: center, radius: radius, field: 'position', strictMode: true, );
There are 9 snapshot listeners spawning. You can see that in the monitoring section of console.cloud.google.com. It is always 9! Why?
Thanks.
from geoflutterfire.
@justChris I have the same problem, can you share what was the cause? For me as well it was always exactly 9 snapshot listeners spawning!
from geoflutterfire.
Related Issues (20)
- Poorly worded/located documentation for using a where statement HOT 1
- Stream doesn't update properly HOT 1
- GoogleMapController Initialization
- in the fact this package get all docs in Firstore , either it meat radius or not !! horrible read me list , not true HOT 1
- near places not meet redious
- How to sort in order of closest? HOT 2
- How to apply geoCollection.within for polygons
- Update dependency to: flutter_lints ^2.0.1 HOT 4
- Not compiling after 3.0.0 when receiving query
- geoflutterfire stopped working with Google IO Firebase plugin updates in pubspec.yaml HOT 1
- Centered on same set of data locations, Query result succeeds or fails depending of the radius
- Getting error on calling GeoFirePoint.data HOT 1
- Empty result when querying "within" on collection HOT 6
- It simple stop working
- Additional Maintainers HOT 4
- Please update flutter_lints pakage to new version or remove from geoflutterfire HOT 4
- cloud_firestore: ^4.0.2 - compatibility HOT 7
- Cloud Call Error when querying documents through GeoFlutterFire
- Example: Could we replace BehaviorSubject with Dart StreamController?
- geoflutterfire >=3.0.2 depends on cloud_firestore ^3.1.6, but I have cloud_firestore ^4.4.4. I have to downgrade to make it work? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoflutterfire.