Can anyone confirm this Axios memory leak. #5640
ekerner-com
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I observed this in Chrome on Mac (so Safari essentially).
I haven't tested in any other environment.
Every call with Axois adds 4 event listeners and they never get cleaned up.
This inflates memory consumption over time and eventually causes a mem crash.
To reproduce
Leave a page open with an interval running an Axios call every n seconds.
To observe
Open the performance monitor and make sure that the JS Heap and Event Listeners metrics are selected.
I tried the latest and older versions with the same result.
Beta Was this translation helpful? Give feedback.
All reactions