-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Free resources (free detached nodes from memory) #1380
Conversation
Found an issue when using virtualized list (https://github.com/bvaughn/react-virtualized), where unmounted react components (connected to store using connect) were not collected by the garbage collector. I'm not sure what is the exact explanation here, but it solved my problem.
Deploy preview for react-redux-docs ready! Built with commit 8c7001e |
Can you put together a sandbox that shows the problem in action, so that we can check to see if this actually makes any difference? I don't see any reason why this change would be a problem, I just want to see how much it helps. |
Remove comment Co-Authored-By: Tim Dorr <[email protected]>
Hi, thanks for replying. |
Well, In theory, what I would expect is:
But, all that said, I see no reason why this change would be an issue, so let's get it in. |
* Free resources (free detached nodes from memory) Found an issue when using virtualized list (https://github.com/bvaughn/react-virtualized), where unmounted react components (connected to store using connect) were not collected by the garbage collector. I'm not sure what is the exact explanation here, but it solved my problem. * Fix lint issue * Fix lint issue * Update src/components/connectAdvanced.js Remove comment Co-Authored-By: Tim Dorr <[email protected]>
Found an issue when using virtualized list (https://github.com/bvaughn/react-virtualized), where unmounted react components (connected to store using connect) were not collected by the garbage collector.
I'm not sure what is the exact explanation here, but it solved my problem.