Skip to content
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 kube-api watch leak on window unload #3858

Merged
merged 1 commit into from
Oct 1, 2021
Merged

Conversation

jakolehm
Copy link
Contributor

node-fetch connection is not always automatically cleaned when window reloads. This PR aims to fix that by unmounting app when window unloads.

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
@jakolehm jakolehm added the bug Something isn't working label Sep 21, 2021
@jakolehm jakolehm added this to the 5.2.4 milestone Sep 21, 2021
@jakolehm jakolehm requested a review from a team as a code owner September 21, 2021 16:46
@jakolehm jakolehm requested a review from jweak September 21, 2021 16:48
Copy link
Member

@ixrock ixrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this fix is really works and how node-fetch related to ReactDOM.unmountComponentAtNode 😂 but let's try it out 🤞
Code LGTM.

@jim-docker jim-docker modified the milestones: 5.2.4, 5.2.5 Sep 27, 2021
@jakolehm jakolehm modified the milestones: 5.2.5, 5.2.6 Oct 1, 2021
@Nokel81 Nokel81 merged commit 5b56283 into master Oct 1, 2021
@Nokel81 Nokel81 deleted the fix-watch-leak-on-unload branch October 1, 2021 14:29
jim-docker pushed a commit that referenced this pull request Nov 1, 2021
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
@jim-docker jim-docker mentioned this pull request Nov 1, 2021
jim-docker pushed a commit that referenced this pull request Nov 1, 2021
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
@jim-docker jim-docker mentioned this pull request Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants