forked from apollographql/apollo-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using separate shadowObservers Set for cleanup observers.
When there are multiple observers subscribed to a Concast, messages should be delivered in the order the observers were added. The shadowObservers approach notified any cleanup observers after any normal observers, potentially reordereding message delivery. I'm not sure that reordering was necessarily "wrong," but it would be a very tricky problem to track down for anyone who might be affected by it. However, if any other non-cleanup observers have been added, and the last observer removed is a cleanup observer, then we should unsubscribe from this.sub, to preserve the fix for apollographql#6985.
- Loading branch information
Showing
1 changed file
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters