effector / reflect

Easily render React components with everything you love from ☄️ effector.

Home Page:https://reflect.effector.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reflected components doesn't work properly with Radix UI components with asChild props

opened this issue · comments

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

commented

@frkam Thank you for the report.

Would you like to contribute patch to fix the issue?

@sergeysova Thank you for answer!

Sorry, but I don't have time for this right now :(

@frkam Fix was released at https://github.com/effector/reflect/releases/tag/v8.3.2.

Would you like to check and close/comment on this issue?

Thank you @kireevmp for the contribution!