Skip to content

<MagicExit> component & ForwardRef bugfix

Compare
Choose a tag to compare
@Etesam913 Etesam913 released this 08 Nov 04:56
· 17 commits to main since this release

✨ Overview

  • The new <MagicExit> tag is an easier api to add exit animations to items that are conditionally rendered in the <MagicMotion> tag

  • There was a nasty bug where you would get something like the below:

    • [object Object] tag name
  • 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