Skip to content

Conversation

healtheloper
Copy link

@healtheloper healtheloper commented Aug 26, 2025

Continues #3353 #3327

When LazyMotion uses feature animation files(domAnimation, domMax, domMin), functions are passed as renderer which can cause errors in RSC. so, I add "use client" directive to feature animation files to resolve error.
As a result, motion/react-m can now be used in RSC environments.

While I attempted various approaches to make motion/react work as well, unlike other packages that use pre-created elements from client-boundary, motion.div from motion/react appears to dynamically createVisualElement using Proxy. Therefore, motion from motion/react always requires "use client" directive, so no additional work was done for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant