You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use reflected component as a children for Radix UI component with asChild prop you will get this error: Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
I think the reason for this error is that the reflected components are not wrapped with forwardRef
The text was updated successfully, but these errors were encountered:
Reproduce:
If you use reflected component as a children for Radix UI component with
asChild
prop you will get this error:Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
I think the reason for this error is that the reflected components are not wrapped with
forwardRef
The text was updated successfully, but these errors were encountered: