Skip to content
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

"The node you're attempting to unmount was rendered by another copy of React" #610

Closed
volkanunsal opened this issue Nov 19, 2016 · 1 comment

Comments

@volkanunsal
Copy link
Contributor

I came across this error in the HelloWorld app with Rails 5.0.1. Anyone have any idea how to fix it?

volkanunsal added a commit to volkanunsal/react_on_rails that referenced this issue Nov 19, 2016
@volkanunsal
Copy link
Contributor Author

I believe I figured it out. Instead of using "turbolinks:before-cache" event, the callback was hooked into "turbolinks:before-render", which is not the same thing. Here is a compatibility reference between versions 2 and 5.

The problem can be solved by modifying this line. I have submitted a pull request for it.

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

No branches or pull requests

1 participant