Skip to content

Bug with forwardRef and memo components #527

@TrejGun

Description

@TrejGun

Hi guys, thanks for your efforts
I have found a bug where forwardRef and memo crashes website completely
Here is a minimal repo:
https://github.com/TrejGun/react-refresh-bug

Note: there are 3 components inside
Simple - works fine
ForwardRef - fails
Workaround - shows that forwardRef potentially can work

Please take a look at this.
I have also created the same bug in Jack-Works/react-refresh-transformer#9

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