We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb349b commit a333a10Copy full SHA for a333a10
1 file changed
apps/media/components/motion-primitives/animated-group.tsx
@@ -115,14 +115,8 @@ function AnimatedGroup({
115
const containerVariants = variants?.container || selectedVariants.container;
116
const itemVariants = variants?.item || selectedVariants.item;
117
118
- const MotionComponent = React.useMemo(
119
- () => motion.create(as as keyof JSX.IntrinsicElements),
120
- [as]
121
- );
122
- const MotionChild = React.useMemo(
123
- () => motion.create(asChild as keyof JSX.IntrinsicElements),
124
- [asChild]
125
+ const MotionComponent = React.useMemo(() => motion.create(as), [as]);
+ const MotionChild = React.useMemo(() => motion.create(asChild), [asChild]);
126
127
return (
128
<MotionComponent
0 commit comments