@shopgate/pwa-common-commerce 7.30.2-beta.1 → 7.30.2-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,6 @@ import { RECEIVE_CATEGORIES } from "../constants";
7
7
  */
8
8
  const receiveCategories = categories => ({
9
9
  type: RECEIVE_CATEGORIES,
10
- categories,
11
- products: []
10
+ categories
12
11
  });
13
12
  export default receiveCategories;
@@ -11,7 +11,6 @@ const receiveCategory = (categoryId, categoryData, categoryChildren) => ({
11
11
  type: RECEIVE_CATEGORY,
12
12
  categoryId,
13
13
  categoryData,
14
- categoryChildren,
15
- products: []
14
+ categoryChildren
16
15
  });
17
16
  export default receiveCategory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-common-commerce",
3
- "version": "7.30.2-beta.1",
3
+ "version": "7.30.2-beta.3",
4
4
  "description": "Commerce library for the Shopgate Connect PWA.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -20,8 +20,8 @@
20
20
  "reselect": "^4.1.8"
21
21
  },
22
22
  "devDependencies": {
23
- "@shopgate/pwa-common": "7.30.2-beta.1",
24
- "@shopgate/pwa-core": "7.30.2-beta.1",
23
+ "@shopgate/pwa-common": "7.30.2-beta.3",
24
+ "@shopgate/pwa-core": "7.30.2-beta.3",
25
25
  "lodash": "^4.17.23",
26
26
  "react": "^17.0.2",
27
27
  "react-dom": "^17.0.2"
@@ -73,7 +73,8 @@ export default function resultsByHash(state = {}, action = {}) {
73
73
  [action.hash]: {
74
74
  ...state[action.hash],
75
75
  products: [],
76
- expires: 0
76
+ expires: 0,
77
+ totalResultCount: null
77
78
  }
78
79
  };
79
80
  }
@@ -699,7 +699,8 @@ export const getPopulatedProductsResult = (state, props, hash, result) => {
699
699
  totalProductCount,
700
700
  sort,
701
701
  hash,
702
- expired
702
+ expired,
703
+ isFetching: !!(result && result.isFetching)
703
704
  };
704
705
  };
705
706