<MagicExit> component & ForwardRef bugfix
✨ Overview
-
The new
<MagicExit>
tag is an easier api to add exit animations to items that are conditionally rendered in the<MagicMotion>
tag- To see more visit here: https://www.react-magic-motion.com/components/magic-exit
-
There was a nasty bug where you would get something like the below:
-
This happened when the
convertChildrenToMotionChildren
function would try to convert a forwardRef component to a motion component. forwardRef is not a valid type for a motion component- A check was added by @zemariagp to fix this bug: #12