Skip to content

Commit 504d7a5

Browse files
committed
Update Redux store configuration
Signed-off-by: Michael Mior <mmior@mail.rit.edu>
1 parent 6fa4d41 commit 504d7a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)