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 f166177 commit e519cf2Copy full SHA for e519cf2
client/index.js
@@ -22,6 +22,11 @@ function getCurrentScriptSource() {
22
}
23
24
let urlParts;
25
+let hotReload = true;
26
+if (typeof window !== 'undefined') {
27
+ const qs = window.location.search.toLowerCase();
28
+ hotReload = qs.indexOf('hotreload=false') === -1;
29
+}
30
if (typeof __resourceQuery === 'string' && __resourceQuery) {
31
// If this bundle is inlined, use the resource query to get the correct url.
32
urlParts = url.parse(__resourceQuery.substr(1));
@@ -192,7 +197,7 @@ self.addEventListener('beforeunload', () => {
192
197
});
193
198
194
199
function reloadApp() {
195
- if (isUnloading) {
200
+ if (isUnloading || !hotReload) {
196
201
return;
202
203
if (hot) {
0 commit comments