[BUG] React 18 issues
See original GitHub issueUsing React 18 a component inside <AnimatePresence/>
does not unmount from the DOM after the exit animation finishes. There are also other issues involving layoutId
, but the one that seems really broken is the <AnimatePresence/>
.
It seems that most issues are related to the strict mode. Disabling it fix the issue.
Framer version: 5.5.5 React version: 18.0.0-rc0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:6
Top Results From Across the Web
Bug: React 18 types broken since the type release a ... - GitHub
Can we move this issue discussion to the DefinitelyTyped repository? That's where the React typings are maintained, and you'll probably see more ...
Read more >Why React 18 Broke Your App - CoderPad
React 18's internal changes improved a lot, but may have broken your app in the process. Here's why and how you can fix...
Read more >React 18 Is Broken In A Weird Way - YouTube
React 18 includes concurrent rendering which might render a `useEffect` multiple times. If you rely on useEffect for onComponentDidMount, ...
Read more >Upgrade to react 18 — Issues and resolution - Dev Genius
Made React.StrictMode component a child/descendent of Provider component in my src/index.js file. There are some significant updates to strict mode in React 18...
Read more >Strict Mode - React
To help surface these issues, React 18 introduces a new development-only check to Strict Mode. This new check will automatically unmount and remount...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any updates on this? I’m also dealing with this issue
That would be awesome, thanks @mattgperry. This is blocking our upgrade to React 18 and we love Framer Motion 😃