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

Fix multi tab persistence issue #8247

Merged
merged 5 commits into from
May 14, 2024
Merged

Conversation

milaGGL
Copy link
Contributor

@milaGGL milaGGL commented May 14, 2024

Bug: when multi-tab persistence is enabled, the queries in the secondary tabs tend to raise empty snapshot or return flaky results.

Copy link

changeset-bot bot commented May 14, 2024

🦋 Changeset detected

Latest commit: f32efea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/firestore Patch
firebase Patch
@firebase/firestore-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented May 14, 2024

Changeset File Check ✅

  • No modified packages are missing from the changeset file.
  • No changeset formatting errors detected.

@milaGGL milaGGL marked this pull request as ready for review May 14, 2024 14:51
@milaGGL milaGGL requested review from a team as code owners May 14, 2024 14:51
@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 14, 2024

Size Report 1

Affected Products

  • @firebase/firestore

    TypeBase (9cbb184)Merge (e5ffdfc)Diff
    esm5363 kB363 kB-2 B (-0.0%)
    main582 kB582 kB-11 B (-0.0%)
  • firebase

    TypeBase (9cbb184)Merge (e5ffdfc)Diff
    firebase-compat.js786 kB786 kB+1 B (+0.0%)
    firebase-firestore-compat.js341 kB341 kB+1 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/sy4Xtpah12.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 14, 2024

@milaGGL milaGGL merged commit 2ce9569 into master May 14, 2024
44 checks passed
@milaGGL milaGGL deleted the Fix-multi-tab-persistence-bug branch May 14, 2024 17:58
@google-oss-bot google-oss-bot mentioned this pull request May 20, 2024
@atsjo
Copy link

atsjo commented Jun 13, 2024

When using includeMetadataChanges: true, this "fix" has broken the metadata.fromCache value beeing set to false for queries in the secondary tabs... In these cases we SHOULD have empty snapshots where only the meta-data change. I'll report a new issue for this, I have verified that firebase 10.12.0 (the version before this commit) works, so pretty sure this is the reason...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants