dima_bur
dima_bur

Reputation: 155

How to disable hot reload in create-react-app?

How to disable hot reload in create-react-app and reload browser only manually? Currently it reloads after every change in project. I'm using Firefox and tried to block request localhost:3000/sockjs-node/* how is suggested here but it doesn't work.

Upvotes: 5

Views: 6124

Answers (1)

arseneyr
arseneyr

Reputation: 328

Blocking localhost:3000/sockjs-node/* only blocks requests for the /sockjs-node/ path (note the trailing /) and all subpaths. This will not block requests made to localhost:3000/sockjs-node, which is what CRA uses for hot reloading. Change your request blocking filter to localhost:3000/sockjs-node.

Upvotes: 4

Related Questions