We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5c558d commit c969f23Copy full SHA for c969f23
packages/firestore/src/core/event_manager.ts
@@ -145,7 +145,10 @@ export async function eventManagerListen(
145
listenerAction = listener.listensToRemoteStore()
146
? ListenerSetupAction.InitializeLocalListenAndRequireWatchConnection
147
: ListenerSetupAction.InitializeLocalListenOnly;
148
- } else if (listener.listensToRemoteStore()) {
+ } else if (
149
+ !queryInfo.hasRemoteListeners() &&
150
+ listener.listensToRemoteStore()
151
+ ) {
152
// Query has been listening to local cache, and tries to add a new listener sourced from watch.
153
listenerAction = ListenerSetupAction.RequireWatchConnectionOnly;
154
}
0 commit comments