File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,7 @@ initSocket();
130
130
if ( module . hot ) {
131
131
module . hot . accept ( './routes' , ( ) => {
132
132
const nextRoutes = require ( './routes' ) ;
133
- hydrate ( nextRoutes . __esModule ? nextRoutes . default : nextRoutes ) . catch ( err => {
134
- console . error ( 'Error on routes reload:' , err ) ;
135
- } ) ;
133
+ hydrate ( nextRoutes . __esModule ? nextRoutes . default : nextRoutes ) ;
136
134
} ) ;
137
135
}
138
136
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import { withRouter , Route } from 'react-router' ;
4
+ import { hot } from 'react-hot-loader/root' ;
4
5
5
6
@withRouter
6
7
class RouterTrigger extends Component {
@@ -91,4 +92,4 @@ class RouterTrigger extends Component {
91
92
}
92
93
}
93
94
94
- export default RouterTrigger ;
95
+ export default hot ( RouterTrigger ) ;
You can’t perform that action at this time.
0 commit comments