-
Notifications
You must be signed in to change notification settings - Fork 649
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
Support SSR #619
Support SSR #619
Conversation
src/Transition.js
Outdated
nodeRef: PropTypes.shape({ | ||
current: typeof Element === 'undefined' | ||
? PropTypes.any | ||
: PropTypes.instanceOf(Element) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we not rely on "Element" for this prop-type? My concern is equivalent to merceyz/typescript-to-proptypes#3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem can be noticed on mui/material-ui#21858 (comment).
## [4.4.1](v4.4.0...v4.4.1) (2020-05-06) ### Bug Fixes * transition SSR ([#619](#619)) ([2722bb6](2722bb6))
🎉 This PR is included in version 4.4.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [4.4.1](reactjs/react-transition-group@v4.4.0...v4.4.1) (2020-05-06) ### Bug Fixes * transition SSR ([#619](reactjs/react-transition-group#619)) ([2722bb6](reactjs/react-transition-group@2722bb6))
## [4.4.1](reactjs/react-transition-group@v4.4.0...v4.4.1) (2020-05-06) ### Bug Fixes * transition SSR ([#619](reactjs/react-transition-group#619)) ([2722bb6](reactjs/react-transition-group@2722bb6))
## [4.4.1](reactjs/react-transition-group@v4.4.0...v4.4.1) (2020-05-06) ### Bug Fixes * transition SSR ([#619](reactjs/react-transition-group#619)) ([2722bb6](reactjs/react-transition-group@2722bb6))
## [4.4.1](reactjs/react-transition-group@v4.4.0...v4.4.1) (2020-05-06) ### Bug Fixes * transition SSR ([#619](reactjs/react-transition-group#619)) ([2722bb6](reactjs/react-transition-group@2722bb6))
Fixes #618 and adds regression tests to make sure the lib loads in node environment