@eetech-commerce/cart-react 0.6.3 → 0.6.5

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1512,6 +1512,7 @@ function useCreateCheckoutSession() {
1512
1512
  ...checkoutControllerCreateCheckoutSessionV1Mutation(),
1513
1513
  onSuccess: () => {
1514
1514
  queryClient.invalidateQueries({ queryKey: cartKeys.all() });
1515
+ queryClient.invalidateQueries({ queryKey: shippingKeys.all() });
1515
1516
  }
1516
1517
  });
1517
1518
  const createCheckoutSession = useCallback2(
@@ -1541,6 +1542,7 @@ function useUpdateCheckoutSession() {
1541
1542
  ...checkoutControllerUpdateCheckoutSessionV1Mutation(),
1542
1543
  onSuccess: () => {
1543
1544
  queryClient.invalidateQueries({ queryKey: cartKeys.all() });
1545
+ queryClient.invalidateQueries({ queryKey: shippingKeys.all() });
1544
1546
  }
1545
1547
  });
1546
1548
  const updateCheckoutSession = useCallback2(
@@ -1571,6 +1573,7 @@ function useShippingOptions(cartSessionId) {
1571
1573
  tenantSlug,
1572
1574
  cartSessionId
1573
1575
  },
1576
+ query: { refresh: true },
1574
1577
  baseUrl: cartApiUrl
1575
1578
  }),
1576
1579
  enabled: !!cartSessionId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eetech-commerce/cart-react",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"