Skip to content

Commit

Permalink
fix(client): set hot:false as a default
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Apr 28, 2020
1 parent 0c74447 commit d313992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client-src/default/index.js
Expand Up @@ -15,7 +15,7 @@ const status = {
currentHash: '',
};
const options = {
hot: true,
hot: false,
hotReload: true,
liveReload: false,
initial: true,
Expand All @@ -36,6 +36,7 @@ if (typeof window !== 'undefined') {

const onSocketMessage = {
hot() {
options.hot = true;
log.info('[WDS] Hot Module Replacement enabled.');
},
liveReload() {
Expand Down
2 changes: 1 addition & 1 deletion test/client/__snapshots__/index.test.js.snap
Expand Up @@ -36,7 +36,7 @@ exports[`index should run onSocketMessage.ok 1`] = `"Ok"`;

exports[`index should run onSocketMessage.ok 2`] = `
Object {
"hot": true,
"hot": false,
"hotReload": true,
"initial": false,
"liveReload": false,
Expand Down

0 comments on commit d313992

Please sign in to comment.