Skip to content

Upgrade to React 18 - #1438

Merged
mattgperry merged 18 commits into
mainfrom
feature/18
Feb 9, 2022
Merged

Upgrade to React 18#1438
mattgperry merged 18 commits into
mainfrom
feature/18

Conversation

@mattgperry

@mattgperry mattgperry commented Feb 1, 2022

Copy link
Copy Markdown
Collaborator

This PR makes Framer Motion compatible with React 18.

I've downgraded it back to 17 in resolutions as it wasn't compatible with all test suites.

The biggest change is that components can be re-mounted, so they can't consider an unmount the same as the end of their lifecycle.

Closes #826

@mattgperry
mattgperry requested review from adamseckel and nvh February 2, 2022 12:40
element.mount({})
return element.unmount()
}, [])
return element.unmount

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't React 18 specific, but something that must have been a quiet bug before

@vpontis

vpontis commented Feb 5, 2022

Copy link
Copy Markdown

Awesome thank you @mattgperry 👍

@mattgperry
mattgperry requested a review from shuangq February 9, 2022 10:35
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.

2 participants