Skip to content
Snippets Groups Projects
Commit bff86ab0 authored by esikkala's avatar esikkala
Browse files

Upgrade redux-observable

parent 9447bba6
No related branches found
No related tags found
No related merge requests found
...@@ -7945,11 +7945,6 @@ ...@@ -7945,11 +7945,6 @@
"assert-plus": "^1.0.0" "assert-plus": "^1.0.0"
} }
}, },
"gitbook-plugin-github": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/gitbook-plugin-github/-/gitbook-plugin-github-2.0.0.tgz",
"integrity": "sha1-UWbnY8/MQC1DKIC3pshcHFS1ao0="
},
"gl-mat3": { "gl-mat3": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/gl-mat3/-/gl-mat3-1.0.0.tgz", "resolved": "https://registry.npmjs.org/gl-mat3/-/gl-mat3-1.0.0.tgz",
...@@ -13274,12 +13269,9 @@ ...@@ -13274,12 +13269,9 @@
} }
}, },
"redux-observable": { "redux-observable": {
"version": "0.18.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/redux-observable/-/redux-observable-0.18.0.tgz", "resolved": "https://registry.npmjs.org/redux-observable/-/redux-observable-1.0.0.tgz",
"integrity": "sha512-tu02n6jr6/bq/vyI9E/AHxIyIl0YsWloqvWqSBG0KqN6aQBujMBP6hlDAlQLj8hP+XQpqL293MLX6V612c0jSg==", "integrity": "sha512-6bXnpqWTBeLaLQjXHyN1giXq4nLxCmv+SUkdmiwBgvmVxvDbdmydvL1Z7DGo0WItyzI/kqXQKiucUuTxnrPRkA=="
"requires": {
"gitbook-plugin-github": "^2.0.0"
}
}, },
"redux-responsive": { "redux-responsive": {
"version": "4.3.8", "version": "4.3.8",
...@@ -13802,7 +13794,6 @@ ...@@ -13802,7 +13794,6 @@
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
...@@ -13971,7 +13962,6 @@ ...@@ -13971,7 +13962,6 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
......
...@@ -55,10 +55,12 @@ const getPlace = action$ => action$.pipe( ...@@ -55,10 +55,12 @@ const getPlace = action$ => action$.pipe(
}) })
); );
const getFacet = action$ => action$.pipe( const getFacet = (action$, state$) => action$.pipe(
ofType(FETCH_FACET), ofType(FETCH_FACET),
mergeMap(() => { withLatestFrom(state$),
mergeMap(([, state]) => {
const requestUrl = `${apiUrl}facet`; const requestUrl = `${apiUrl}facet`;
//console.log(state.facet)
//const facetFilters = state$.getState().facet.facetFilters; //const facetFilters = state$.getState().facet.facetFilters;
//let str = Object.entries(facetFilters).map(([key, set]) => `${key}=${Array.from(set)}`).join('&'); //let str = Object.entries(facetFilters).map(([key, set]) => `${key}=${Array.from(set)}`).join('&');
return ajax.getJSON(requestUrl).pipe( return ajax.getJSON(requestUrl).pipe(
......
...@@ -17,18 +17,21 @@ import 'react-redux-toastr/lib/css/react-redux-toastr.min.css'; ...@@ -17,18 +17,21 @@ import 'react-redux-toastr/lib/css/react-redux-toastr.min.css';
import 'react-virtualized/styles.css'; import 'react-virtualized/styles.css';
const history = createBrowserHistory(); const history = createBrowserHistory();
const epicMiddleware = createEpicMiddleware();
const store = createStore( const store = createStore(
createRootReducer(history), // root reducer with router state createRootReducer(history), // root reducer with router state
compose( compose(
responsiveStoreEnhancer, responsiveStoreEnhancer,
applyMiddleware( applyMiddleware(
createEpicMiddleware(rootEpic), epicMiddleware,
routerMiddleware(history) routerMiddleware(history)
) )
) )
); );
epicMiddleware.run(rootEpic);
bindActionCreators(toastrActions, store.dispatch); bindActionCreators(toastrActions, store.dispatch);
render( render(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment