flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[FIRESTORE]: includeMetadataChanges does not make the stream emit second non cache event

Open jtdLab opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Which plugins are affected?

Database

Which platforms are affected?

No response

Description

When listening for data like this (with internet connection):

doc.snapshots(includeMetadataChanges: true)

There is only a snapshot with metadata.isFromCache = true fired but no second with metadata.isFromCache = false as stated in https://firebase.google.com/docs/reference/js/v8/firebase.firestore.SnapshotMetadata

Reproducing the issue

Listen to a document as described.

Firebase Core version

2.31.0

Flutter Version

3.22.0

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet

Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

jtdLab avatar May 14 '24 19:05 jtdLab

@jtdLab, thank you for reporting this issue. Could you please provide additional details about which platform you have tested on and where you found this bug? This information will help us better understand and address the issue.

TarekkMA avatar May 15 '24 07:05 TarekkMA

Hey @jtdLab. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar May 24 '24 01:05 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@jtdLab if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Jun 04 '24 01:06 google-oss-bot