Giter VIP home page Giter VIP logo

Comments (17)

algirdasmac avatar algirdasmac commented on May 29, 2024 2

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.

DarshanGowda0 avatar DarshanGowda0 commented on May 29, 2024 1

@momoDragon this issue should now be resolved by #14. Please verify the same 😄

from geoflutterfire.

momoDragon avatar momoDragon commented on May 29, 2024 1

Thanks Darshan. New update solved the bug. Keep it up :)

from geoflutterfire.

momoDragon avatar momoDragon commented on May 29, 2024 1

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.

momoDragon avatar momoDragon commented on May 29, 2024

The stream builder builds then disappears. I can see the content flash for a split second.

from geoflutterfire.

momoDragon avatar momoDragon commented on May 29, 2024

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.

momoDragon avatar momoDragon commented on May 29, 2024

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.

japborst avatar japborst commented on May 29, 2024

@DarshanGowda0 fixed it for me on 2.0.3

from geoflutterfire.

momoDragon avatar momoDragon commented on May 29, 2024

@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.

momoDragon avatar momoDragon commented on May 29, 2024

@DarshanGowda0
Also when i update the data on cloud, the number of docs i get back increases.

  1. I run the app
  2. I update the data on the db
  3. i have print(snapshot.data.length) and i am getting back the length as 2 instead of 1.
  4. edits the data
  5. 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.

DarshanGowda0 avatar DarshanGowda0 commented on May 29, 2024

@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.

momoDragon avatar momoDragon commented on May 29, 2024

@DarshanGowda0 any update? Because i need the plugin the work

from geoflutterfire.

DarshanGowda0 avatar DarshanGowda0 commented on May 29, 2024

@momoDragon sorry for the delay! #19 should fix the breaking changes 😄

from geoflutterfire.

momoDragon avatar momoDragon commented on May 29, 2024

@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.

rdev-software avatar rdev-software commented on May 29, 2024

I got 2 events for one entry as well. Latest version

from geoflutterfire.

justChris avatar justChris commented on May 29, 2024

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.

Jaykocha avatar Jaykocha commented on May 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.