-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify RetryLink, fix potential memory leak (#11424)
fixes #11393
- Loading branch information
Showing
5 changed files
with
51 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@apollo/client": minor | ||
--- | ||
|
||
Simplify RetryLink, fix potential memory leak | ||
|
||
Historically, `RetryLink` would keep a `values` array of all previous values, | ||
in case the operation would get an additional subscriber at a later point in time. | ||
In practice, this could lead to a memory leak (#11393) and did not serve any | ||
further purpose, as the resulting observable would only be subscribed to by | ||
Apollo Client itself, and only once - it would be wrapped in a `Concast` before | ||
being exposed to the user, and that `Concast` would handle subscribers on its | ||
own. |
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
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
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
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