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

Warn when using React.unmountComponentAtNode on a different React instance's tree #3787

Closed
sophiebits opened this issue Apr 29, 2015 · 3 comments

Comments

@sophiebits
Copy link
Collaborator

We should be able to look at see if the child has a data-react-id attribute but isn't rendered by this copy of React and consequently warn.

See https://groups.google.com/forum/#!topic/reactjs/mdwfKKJ0L2Q.

@jimfb
Copy link
Contributor

jimfb commented May 1, 2015

Probably same with React.render, right? We would want to warn if you are rendering into another React's instance tree?

@sophiebits
Copy link
Collaborator Author

Sure. @crm416 had some related warnings in #2065.

ventuno pushed a commit to ventuno/react that referenced this issue Aug 10, 2016
ventuno pushed a commit to ventuno/react that referenced this issue Aug 17, 2016
sophiebits pushed a commit that referenced this issue Aug 18, 2016
…nce's tree. (#7456)

* Warn when using React.unmountComponentAtNode on a different React instance's tree

#3787

* Adding tests.

* Implementing recommended changes.

#3787
zpao pushed a commit that referenced this issue Aug 19, 2016
…nce's tree. (#7456)

* Warn when using React.unmountComponentAtNode on a different React instance's tree

#3787

* Adding tests.

* Implementing recommended changes.

#3787

(cherry picked from commit a9e681a)
@gaearon
Copy link
Collaborator

gaearon commented Oct 27, 2016

Fixed in #7456.

@gaearon gaearon closed this as completed Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants