Skip to content

Conversation

eps1lon
Copy link
Member

@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
Member 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