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

[4.x] fixed frontend request polling memory leaks #1086

Merged
merged 3 commits into from
Jul 6, 2021

Conversation

myckhel
Copy link
Contributor

@myckhel myckhel commented Jul 5, 2021

When component sends network request, the network response still gets processed after the initiated component has been unmounted which causes the response to initiate another checkForNewEntries request.

Given the screenshot below, duplicate requests were being made after navigating from one watch section to another.
Screenshot 2021-07-05 at 13 08 40

This pull request prevents watch component from processing network response after component has been unmounted.

@driesvints
Copy link
Member

Prs without a sufficient explanation will be closed.

@myckhel
Copy link
Contributor Author

myckhel commented Jul 5, 2021

updated description

@taylorotwell taylorotwell merged commit e39ab3b into laravel:4.x Jul 6, 2021
@driesvints
Copy link
Member

Thanks for the pr @myckhel!

@myckhel
Copy link
Contributor Author

myckhel commented Jul 6, 2021

Its a lie!!! 😮
Say GOD? 😮
giphy

Thanks taylor
Thanks driesvints

@myckhel myckhel deleted the fixed-request-polling-leaks branch July 6, 2021 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frontend Request Polling Memory Leaks
3 participants