We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed50259 commit 976ad74Copy full SHA for 976ad74
resources/scripts/index.tsx
@@ -2,5 +2,13 @@ import React from 'react';
2
import ReactDOM from 'react-dom';
3
import App from '@/components/App';
4
import './i18n';
5
+import { setConfig } from 'react-hot-loader';
6
+
7
+// Prevents page reloads while making component changes which
8
+// also avoids triggering constant loading indicators all over
9
+// the place in development.
10
+//
11
+// @see https://github.com/gaearon/react-hot-loader#hook-support
12
+setConfig({ reloadHooks: false });
13
14
ReactDOM.render(<App/>, document.getElementById('app'));
0 commit comments