-
Notifications
You must be signed in to change notification settings - Fork 18
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
Memory leak with v6 #419
Comments
I've seen this as well. |
After some investigation I think this is the culprit: 7816526 The interval keeps an instance to this, that causes the whole cookie class to be retained. |
Can confirm. After adding |
My problem is that I am using express middleware, that adds a change listener. It's not possible for me to remove this as I don't have access to the listener function itself. |
Then you should address it to the middleware author I guess? Is it available on github? |
It's in this repo as well:
|
Memory leak is happening on our app as well, downgrading has solved it for now. |
Same here, already revert universal-cookie-express update on the end of september due to memory leak just after an upgrade to 6.1.1. |
Will be fixed in next release |
Released in v6.1.2 |
After updating to v6, I started having a memory leak issue.
After comparing Heap snapshots, I noticed lots of links in retained objects of
changeListeners in Cookie
Downgrading
react-cookie
&universal-cookie-express
to5.0.0
solved the memory leak issue.The text was updated successfully, but these errors were encountered: