Skip to content

remove unmountComponents on window unload #318

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

Merged
merged 1 commit into from
Jul 28, 2015

Conversation

markbrown4
Copy link
Contributor

Removing calls to ReactRailsUJS.unmountComponents on window unload for traditional apps using full page refreshes. Unmounting components is unnecessary work on unload and causes undesirable ux when the DOM elements are removed causing repaints. #296

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@rmosolgo
Copy link
Member

I'm game for this but I wonder, does anyone see any red flags to not unmounting when a user closes a page?

Does anyone depend on this behavior?

@rmosolgo
Copy link
Member

🎊 thanks!

rmosolgo pushed a commit that referenced this pull request Jul 28, 2015
remove unmountComponents on window unload
@rmosolgo rmosolgo merged commit c6c38ea into reactjs:master Jul 28, 2015
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.

None yet

3 participants