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

Viewed 4867

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.

1 Answers

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.

Related