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();
130130 if ( module . hot ) {
131131 module . hot . accept ( './routes' , ( ) => {
132132 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 ) ;
136134 } ) ;
137135 }
138136
Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
22import PropTypes from 'prop-types' ;
33import { withRouter , Route } from 'react-router' ;
4+ import { hot } from 'react-hot-loader/root' ;
45
56@withRouter
67class RouterTrigger extends Component {
@@ -91,4 +92,4 @@ class RouterTrigger extends Component {
9192 }
9293}
9394
94- export default RouterTrigger ;
95+ export default hot ( RouterTrigger ) ;
You can’t perform that action at this time.
0 commit comments