Skip to content

Commit 504d7a5

Browse files
committed
Update Redux store configuration
Signed-off-by: Michael Mior <[email protected]>
1 parent 6fa4d41 commit 504d7a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/store.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const store: Store<{}, Action<{}>> = configureStore({
1919
data,
2020
relexp,
2121
},
22-
middleware: [routerMiddleware(history)],
22+
middleware: ((getDefaultMiddleware) =>
23+
getDefaultMiddleware().concat(routerMiddleware(history)): any),
2324
});
2425

2526
export default store;

0 commit comments

Comments
 (0)