Skip to content

Commit baec041

Browse files
committed
temporary change from 'react-router-redux' to 'connected-react-router' and wait for the merge of those two
1 parent c7f1ee8 commit baec041

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

‎frontend/src/App.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
22
import { Provider } from 'react-redux';
3-
import { ConnectedRouter } from 'react-router-redux';
43
import { Store } from 'redux';
54

5+
import { ConnectedRouter } from 'connected-react-router';
66
import { History } from 'history';
77

88
import { DevTools } from 'containers/DevTools';

‎frontend/src/reducers/index.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { routerReducer } from 'react-router-redux';
21
import { combineReducers } from 'redux';
32

43
import { apiData } from 'reducers/apiData';
@@ -9,5 +8,4 @@ export default combineReducers({
98
apiData,
109
todos,
1110
visibilityFilter,
12-
routing: routerReducer as any,
1311
});

‎frontend/src/store/index.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { routerMiddleware } from 'react-router-redux';
1+
import { connectRouter, routerMiddleware } from 'connected-react-router';
22
import { applyMiddleware, compose, createStore, Store } from 'redux';
33
import { createLogger } from 'redux-logger';
44
import promise from 'redux-promise';
@@ -29,13 +29,13 @@ export const configureStore = (initialState: {}, history: History): Store<any> =
2929
}
3030

3131
// Store
32-
const store = createStore(reducers, initialState, enhancer);
32+
const store = createStore(connectRouter(history)(reducers), initialState, enhancer);
3333

3434
// Enable Webpack hot module replacement for reducers
3535
if (!isProduction && module.hot) {
3636
module.hot.accept('../reducers', () => {
3737
const nextReducers = require('reducers').default;
38-
store.replaceReducer(nextReducers);
38+
store.replaceReducer(connectRouter(history)(nextReducers));
3939
});
4040
}
4141

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"babel-register": "^6.26.0",
5757
"body-parser": "^1.17.2",
5858
"compression": "^1.7.0",
59+
"connected-react-router": "^4.2.3",
5960
"cookie-parser": "^1.4.3",
6061
"css-loader": "^0.28.7",
6162
"del": "^3.0.0",
@@ -98,7 +99,6 @@
9899
"react-hot-loader": "v3.0.0-beta.7",
99100
"react-redux": "^5.0.5",
100101
"react-router-dom": "^4.2.2",
101-
"react-router-redux": "^5.0.0-alpha.6",
102102
"redux": "^3.7.2",
103103
"redux-devtools": "^3.4.0",
104104
"redux-devtools-dock-monitor": "^1.1.2",

‎webpack.config.dll.babel.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const reactVendors = [
1111
'react-dom',
1212
'react-router-dom',
1313
'react-redux',
14-
'react-router-redux',
1514
'react-hot-loader',
1615
'redux',
1716
'redux-devtools',
@@ -20,6 +19,7 @@ const reactVendors = [
2019
'redux-logger',
2120
'redux-promise',
2221
'redux-thunk',
22+
'connected-react-router',
2323
];
2424

2525
const materializeVendors = [

‎yarn.lock‎

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,12 +1705,12 @@ caniuse-api@^2.0.0:
17051705
lodash.uniq "^4.5.0"
17061706

17071707
caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639:
1708-
version "1.0.30000726"
1709-
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000726.tgz#9bb742f8d026a62df873bc03c06843d2255b60d7"
1708+
version "1.0.30000727"
1709+
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000727.tgz#4e22593089b0f35c1b2adcfc28234493a21a4b2e"
17101710

17111711
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000718, caniuse-lite@^1.0.30000726:
1712-
version "1.0.30000726"
1713-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000726.tgz#966a753fa107a09d4131cf8b3d616723a06ccf7e"
1712+
version "1.0.30000727"
1713+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000727.tgz#20c895768398ded5f98a4beab4a76c285def41d2"
17141714

17151715
capture-stack-trace@^1.0.0:
17161716
version "1.0.0"
@@ -2030,6 +2030,13 @@ [email protected]:
20302030
parseurl "~1.3.1"
20312031
utils-merge "1.0.0"
20322032

2033+
connected-react-router@^4.2.3:
2034+
version "4.2.3"
2035+
resolved "https://registry.yarnpkg.com/connected-react-router/-/connected-react-router-4.2.3.tgz#7066a7f83da484ddfa9c353903a6b07d19cbe9e1"
2036+
dependencies:
2037+
immutable "^3.8.1"
2038+
react-router "^4.1.0"
2039+
20332040
console-browserify@^1.1.0:
20342041
version "1.1.0"
20352042
resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10"
@@ -3286,7 +3293,7 @@ extglob@^0.3.1:
32863293
dependencies:
32873294
is-extglob "^1.0.0"
32883295

3289-
extglob@^2.0.0:
3296+
extglob@^2.0.2:
32903297
version "2.0.2"
32913298
resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.2.tgz#3290f46208db1b2e8eb8be0c94ed9e6ad80edbe2"
32923299
dependencies:
@@ -4260,7 +4267,7 @@ [email protected]:
42604267
version "1.0.0"
42614268
resolved "https://registry.yarnpkg.com/hide-powered-by/-/hide-powered-by-1.0.0.tgz#4a85ad65881f62857fc70af7174a1184dccce32b"
42624269

4263-
history@^4.5.1, history@^4.7.2:
4270+
history@^4.7.2:
42644271
version "4.7.2"
42654272
resolved "https://registry.yarnpkg.com/history/-/history-4.7.2.tgz#22b5c7f31633c5b8021c7f4a8a954ac139ee8d5b"
42664273
dependencies:
@@ -4501,6 +4508,10 @@ [email protected]:
45014508
version "4.0.0-rc.2"
45024509
resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.0.0-rc.2.tgz#fdd0948aae728fda2306a02f72bb73e1773432d1"
45034510

4511+
immutable@^3.8.1:
4512+
version "3.8.1"
4513+
resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.1.tgz#200807f11ab0f72710ea485542de088075f68cd2"
4514+
45044515
imurmurhash@^0.1.4:
45054516
version "0.1.4"
45064517
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
@@ -6024,15 +6035,15 @@ micromatch@^2.1.5, micromatch@^2.3.11, micromatch@^2.3.7:
60246035
regex-cache "^0.4.2"
60256036

60266037
micromatch@^3.0.3:
6027-
version "3.0.5"
6028-
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.0.5.tgz#99717da26f83c050cd712ab5ea59f71821f758f9"
6038+
version "3.1.0"
6039+
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.0.tgz#5102d4eaf20b6997d6008e3acfe1c44a3fa815e2"
60296040
dependencies:
60306041
arr-diff "^4.0.0"
60316042
array-unique "^0.3.2"
60326043
braces "^2.2.2"
60336044
define-property "^1.0.0"
60346045
extend-shallow "^2.0.1"
6035-
extglob "^2.0.0"
6046+
extglob "^2.0.2"
60366047
fragment-cache "^0.2.1"
60376048
kind-of "^5.0.2"
60386049
nanomatch "^1.2.1"
@@ -7774,15 +7785,7 @@ react-router-dom@^4.2.2:
77747785
react-router "^4.2.0"
77757786
warning "^3.0.0"
77767787

7777-
react-router-redux@^5.0.0-alpha.6:
7778-
version "5.0.0-alpha.6"
7779-
resolved "https://registry.yarnpkg.com/react-router-redux/-/react-router-redux-5.0.0-alpha.6.tgz#7418663c2ecd3c51be856fcf28f3d1deecc1a576"
7780-
dependencies:
7781-
history "^4.5.1"
7782-
prop-types "^15.5.4"
7783-
react-router "^4.1.1"
7784-
7785-
react-router@^4.1.1, react-router@^4.2.0:
7788+
react-router@^4.1.0, react-router@^4.2.0:
77867789
version "4.2.0"
77877790
resolved "https://registry.yarnpkg.com/react-router/-/react-router-4.2.0.tgz#61f7b3e3770daeb24062dae3eedef1b054155986"
77887791
dependencies:

0 commit comments

Comments
 (0)