Repository URL to install this package:
|
Version:
1.2.8 ▾
|
// const mapState = state => ({
// favorites: fromState.getFavorites(state),
// })
// const mapDispatchToProps = (dispatch, ownProps) => {
// return {
// removeFavorite: (value, label) => {
// dispatch(removeFavorite(value, label))
// },
// addFavorite: (id, index) => {
// dispatch(addFavorite(id, index))
// },
// }
// }
// const mapActionsToProps = {
// fetchCatalog: actions.fetchCatalog,
// applySort: actions.applySort,
// }
// const mapRouterAndJobs = compose(
// addUrlProps({urlPropsQueryConfig}),
// connect(mapStateToProps, mapActionsToProps),
// withJob({
// work: ({match, location: {search}, fetchCatalog}) => {
// const {sort, selectedFilters} = qs.parse(search)
// return fetchCatalog(match.params.categoryId, sort, selectedFilters)
// },
// shouldWorkAgain: (prevProps, nextProps) =>
// prevProps.match.params.categoryId !== nextProps.match.params.categoryId ||
// prevProps.location.search !== nextProps.location.search,
// })
// )
// const mapStateToProps = state => ({
// data: fromState.getCatalogData(state),
// results: fromState.getProductsById(state, state.catalog.results),
// filters: fromState.getFilters(state),
// })
// connect([mapRouterAndJobs, mapDispatchToProps, mapState], ProductListPage)
"use strict";