I've been searching for over an hour now, trying to find if there's a way to have Visual Studio reload my React web application on save. Currently I have to restart the run every time I want to see changes. Store extensions won't work with the Mac version.
Asked
Active
Viewed 771 times
-1
-
1What are you using to run your react application, create-react-app? Reloading on save is usually a feature of the development server and not the IDE. – Corey Larson Oct 26 '21 at 16:50
1 Answers
0
It happened to me when I first used CRA. Solved it by using a .env folder in the root of my project containing:
CHOKIDAR_USEPOLLING=true
FAST_REFRESH=false
And in the package.json file I changed the "start" script.
"start": "FAST_REFRESH=false react-scripts start",
That would solve that for your project, but what solved my issue with all my projects was installing CRA globally.

Dharman
- 30,962
- 25
- 85
- 135

DaniloEspinoza96
- 49
- 4