-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: unsubscribe leak #3092
fix: unsubscribe leak #3092
Conversation
…hen the last subscriber unsubscribes
now that we correctly unsubscribe, we could come into a situation where we unsubscibe, then subscribe again. If we have setup a custom event listener before that, we need to call that one, not the default one.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tanstack/react-query/3dSiHoipiGJDDnicxmMiZ4WwQRba |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b789930:
|
Codecov Report
@@ Coverage Diff @@
## master #3092 +/- ##
==========================================
+ Coverage 96.46% 96.47% +0.01%
==========================================
Files 45 45
Lines 2261 2271 +10
Branches 641 641
==========================================
+ Hits 2181 2191 +10
Misses 77 77
Partials 3 3
Continue to review full report at Codecov.
|
🎉 This PR is included in version 3.34.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.0.0-alpha.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.