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

fix(Transition): Don't warn on cross-realm nodes #653

Closed
wants to merge 2 commits into from

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Jul 22, 2020

node instanceOf Element checks return false if the node comes from a different window than where the Transition module was initialized.

As far as I can tell we don't care if the node is from a different window. We're only interested in the implemented interface so checking for nodeType should be sufficient.

The test passes for the previous and proposed implementation without changing the error message. We could just go with PropTypes.shape({ nodeType: PropTypes.oneOf([1]).isRequired }) but the error message would not be helpful since it wouldn't mention Element at all.

Resolves #618 (comment)
Resolves #619 (comment)

@koba04
Copy link
Member

koba04 commented May 29, 2021

@eps1lon I missed this PR for the issue, and this has been fixed at #732. I'm sorry that I couldn't take your PR🙏

@koba04 koba04 closed this May 29, 2021
@eps1lon
Copy link
Collaborator Author

eps1lon commented May 29, 2021

@eps1lon I missed this PR for the issue, and this has been fixed at #732. I'm sorry that I couldn't take your PR🙏

All good. Thanks for the fix!

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.

SSR in 4.4.0 crashes
3 participants