@graphcommerce/demo-magento-graphcommerce 9.0.0-canary.84 → 9.0.0-canary.86

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @graphcommerce/demo-magento-graphcommerce
2
2
 
3
+ ## 9.0.0-canary.86
4
+
5
+ ## 9.0.0-canary.85
6
+
3
7
  ## 9.0.0-canary.84
4
8
 
5
9
  ## 9.0.0-canary.83
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/demo-magento-graphcommerce",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.84",
5
+ "version": "9.0.0-canary.86",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -15,14 +15,14 @@
15
15
  }
16
16
  },
17
17
  "peerDependencies": {
18
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.84",
19
- "@graphcommerce/framer-scroller": "^9.0.0-canary.84",
20
- "@graphcommerce/magento-product": "^9.0.0-canary.84",
21
- "@graphcommerce/magento-product-configurable": "^9.0.0-canary.84",
22
- "@graphcommerce/magento-recently-viewed-products": "^9.0.0-canary.84",
23
- "@graphcommerce/next-ui": "^9.0.0-canary.84",
24
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.84",
25
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.84",
18
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.86",
19
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.86",
20
+ "@graphcommerce/magento-product": "^9.0.0-canary.86",
21
+ "@graphcommerce/magento-product-configurable": "^9.0.0-canary.86",
22
+ "@graphcommerce/magento-recently-viewed-products": "^9.0.0-canary.86",
23
+ "@graphcommerce/next-ui": "^9.0.0-canary.86",
24
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.86",
25
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.86",
26
26
  "@mui/material": "^5.10.16",
27
27
  "framer-motion": "^10.0.0",
28
28
  "next": "*",
@@ -27,7 +27,10 @@ export function RecentlyViewedProducts(props: PluginProps<RecentlyViewedProducts
27
27
  const ref = useRef<HTMLDivElement>(null)
28
28
  const isInView = useInView(ref, { margin: '300px' })
29
29
  const { skus } = useRecentlyViewedSkus({ exclude })
30
- const productList = useRecentlyViewedProducts({ exclude, skip: !isInView && loading === 'lazy' })
30
+ const productList = useRecentlyViewedProducts({
31
+ exclude,
32
+ skip: skus.length === 0 || (!isInView && loading === 'lazy'),
33
+ })
31
34
 
32
35
  if (
33
36
  !import.meta.graphCommerce.recentlyViewedProducts?.enabled ||