Skip to content

Commit 84f8dcc

Browse files
authored
Merge pull request #524 from arfianadam/devtools-fix
Devtools render fix
2 parents 8551428 + a01bbae commit 84f8dcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ initSocket();
140140
if (__DEVTOOLS__ && !window.devToolsExtension) {
141141
const devToolsDest = document.createElement('div');
142142
window.document.body.insertBefore(devToolsDest, null);
143-
const DevTools = require('./containers/DevTools/DevTools');
143+
let DevTools = require('./containers/DevTools/DevTools');
144+
DevTools = DevTools.__esModule ? DevTools.default : DevTools;
144145
ReactDOM.hydrate(
145146
<Provider store={store}>
146147
<DevTools />

0 commit comments

Comments
 (0)