Skip to content

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

Closed

Description

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

Activity

  1. added
    bug
    on Jun 12, 2023
  2. sergeysova commented on Jun 12, 2023

    @sergeysova
    Member

    @frkam Thank you for the report.

    Would you like to contribute patch to fix the issue?

  3. added this to the v9.0 milestone on Jun 14, 2023
  4. sergeysova commented on Sep 17, 2023

    @sergeysova
    Member

    @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!

  5. removed this from the v9.0 milestone on Sep 17, 2023
  6. self-assigned this
    on Sep 17, 2023
  7. ghost closed this as completedon Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions