Skip to content

Commit 861039a

Browse files
committed
Fixing routes HMR errir
1 parent 4928445 commit 861039a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (module.hot) {
4242
try {
4343
const nextRoutes = require('./routes').default;
4444

45-
store.replaceReducer(nextRoutes);
45+
render(nextRoutes);
4646
} catch (error) {
4747
console.error(`==> 😭 Routes hot reloading error ${error}`);
4848
}

src/components/UserList/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type Props = { list: Array<Object> };
1111
export default ({ list }: Props) => (
1212
<div className={styles.UserList}>
1313
<h4>User List</h4>
14+
123
1415
<ul>
1516
{list.map(({ id, name }) => (
1617
<li key={id}>

0 commit comments

Comments
 (0)