Skip to content

FAST_REFRESH behaviour #10539

Closed
Closed
@hyperknot

Description

@hyperknot
  1. FAST_REFRESH is mentioned as experimental / unstable in the original release log
    here: Add experimental react-refresh support #8582 and here:

    // react-refresh is not 100% stable at this time,
    // which is why it's disabled by default.

  2. I can confirm it's very unstable / unusable today. It doesn't detect any change in non-UI components, for example MobX stores, thus the whole refresh is broken, I always have to reload manually now.

  3. Against what is written in the release log and source code comments, it is actually ENABLED by default today.

    FAST_REFRESH: process.env.FAST_REFRESH !== 'false',

I believe this line need to be changed to === 'true', to make it disabled by default. Also, a small explanation should be added to the next release log, this feature is really not documented at all.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions