-
-
Notifications
You must be signed in to change notification settings - Fork 554
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
bug(SSR): memory leak when using renderToString #357
Comments
@eranhirs Really interesting use case (the stress loading sounds cool too). Do you have a project you can share where you are doing this? Would love to replicate the issue so we can look into debugging. |
It seems the issue starts when I initialize I don't have a project I can share, but I based my implementation on this tutorial. |
Initializing |
So this wasn't the only problem. I still see a lot of observers stacking up in an array attached to |
Hey @eranhirs 👋, |
I understand, I suggest we close this for now and re-open once there is a reproduction of the problem. |
You're pointing to a kind of serious error and I'm willing to help. Closing the Issue won't help. Do I understand correctly that this still occurs? |
Since updating |
@eranhirs really great to hear, thanks for letting us know. @bastianwegge thanks for the help looking into it! Going to close for now since it seems to have improved, but as mentioned we can always open again if there are steps to reproduce the issue. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I am rendering my redux app on the server using the
renderToString
method.I stress-loaded the system with ApacheBench and the memory consistently grows over time.
After some profiling and reading this code, it seems
firebase/app.js
creates a lot of observers at initialization.I've been using
react-redux-firebase
for a while.Would love to know if someone run into something similar and how can I cancel this behavior.
The text was updated successfully, but these errors were encountered: