Skip to content

Commit 9a4dfba

Browse files
committed
fix HMR: Cannot read property 'catch' of undefined
1 parent 3bf1031 commit 9a4dfba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/client.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)