Skip to content

FAST_REFRESH behaviour #10539

Description

@hyperknot
  1. FAST_REFRESH is mentioned as experimental / unstable in the original release log
    here: Add experimental react-refresh support #8582 and here:
    https://github.com/facebook/create-react-app/blob/3f5dea91c1721b233e5a2b514ff9ea6fbc76ff97/packages/react-scripts/config/env.js#L97-L98

  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.
    https://github.com/facebook/create-react-app/blob/3f5dea91c1721b233e5a2b514ff9ea6fbc76ff97/packages/react-scripts/config/env.js#L100

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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