facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.62k stars 26.8k forks source link

Exception for Fast Refresh #10361

Open mustafahlvc opened 3 years ago

mustafahlvc commented 3 years ago

Is your proposal related to a problem?

Hi,

I'm using axios-mock-adapter to demonstrate api calls. It catches HTTP requests then you can respond with the data which you provide.

Without the Fast Refresh, the changes on the files detected by the cra and reloads the app.

But with the Fast Refresh, even the changes detected (i guess), the request won't be triggered and not updates the app.

Describe the solution you'd like

It would be good to define an exception for partially disabling fast refresh. Can be detected with the comment blocks or with a configuration.

Kind regards.

mustafahlvc commented 3 years ago

10539