Skip to content

Usage with reason-react and React.forwardRef #375

@WhyThat

Description

@WhyThat

Hello there,
I'm trying to setup bisect_ppx with on a project which use reason-react

Unfortunately when I try to build with BISECT_ENABLE=true I got this error Fatal error: exception Invalid_argument("react.component calls can only be on function definitions or component wrappers (forwardRef, memo).") this error is throw on component who are using React.forwardRef

I've created a repo to reproduce the error:
https://github.com/WhyThat/bisect-with-forward-ref

Is there a workaround to have bisect_ppx working with component which are using React.forwardRef?

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions