Skip to content

waitForPendingWrites() doesn't resolve with multi-tab persistence #3816

Closed
@scottfr

Description

@scottfr

Describe your environment

  • Operating System version: Mac
  • Browser version: Chrome 85
  • Firebase SDK version: 7.21.0
  • Firebase Product: firestore

Describe the problem

When using multi-tab synchronized persistence, waitForPendingWrites() does not resolve in some of the tabs when you have multiple tabs open.

In our experiments, it correctly resolves in one of the tabs when a write is initiated and tracked in it with waitForPendingWrites(). This is presumably the primary tab for the persistence synchronization.

For writes initiated and tracked in any of the secondary tabs though, waitForPendingWrites() never resolves.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions