Skip to content

Commit 8df7f0d

Browse files
nkzawarauchg
authored andcommitted
fix HMR (#680)
1 parent 0551dc9 commit 8df7f0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/next-dev.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'react-hot-loader/patch'
21
import patch from './patch-react'
32

43
// apply patch first
@@ -7,5 +6,7 @@ patch((err) => {
76
next.renderError(err)
87
})
98

9+
require('react-hot-loader/patch')
10+
1011
const next = require('./next')
1112
window.next = next

0 commit comments

Comments
 (0)