U
U
uRoot2020-11-24 19:19:39
React
uRoot, 2020-11-24 19:19:39

Why does React take a long time to reload?

I start React: yarn start
Everything is OK in the process of work: I make changes, the components are updated, I see updates in the browser.
But over time, the reassembly starts to take a very long time, it just hangs: Compiling...
And you have to wait a long time for updates.

I found this command to fix: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
But no result. The project is simple. Who knows what's wrong? Big projects are ok.
Restarting the OS helps.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question