Skip to content

Bug: [React Refresh] React Refresh edge case, class fields are mistakenly treated as React Component #33519

Open
@GRAMMAC1

Description

@GRAMMAC1

React version: all React version

Steps To Reproduce

Related issue web-infra-dev/rsbuild#4730

Link to code example:

https://github.com/dartess/rsbuild-class-hmr

The current behavior

hmr not works when change Feature value. Rspack and Webpack have same issue.

The expected behavior

hmr works

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions