motiondivision / motion

A modern animation library for React and JavaScript
https://motion.dev
MIT License
25.96k stars 851 forks source link

Fix animations in re-suspended components #2706

Closed mattgperry closed 5 months ago

mattgperry commented 5 months ago

Fixes https://github.com/framer/motion/issues/2269

As the React 19 upgrade branch could be open for a while, with two versions maintained (11.x for React 18 and 12.x for React 19) this PR cherrypicks the logic changes to keep rebases simpler and fix Suspense animations sooner.