@graphcommerce/magento-newsletter 9.1.0-canary.18 → 9.1.0-canary.20

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.0-canary.20
4
+
5
+ ## 9.1.0-canary.19
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`0078951`](https://github.com/graphcommerce-org/graphcommerce/commit/007895103c82974cebc811e0a59e029108e15153) - Prevent executing additional query when user is signing out ([@paales](https://github.com/paales))
10
+
3
11
  ## 9.1.0-canary.18
4
12
 
5
13
  ## 9.1.0-canary.17
@@ -1,6 +1,5 @@
1
1
  import { ApolloErrorSnackbar } from '@graphcommerce/ecommerce-ui'
2
- import { useQuery } from '@graphcommerce/graphql'
3
- import { ApolloCustomerErrorAlert } from '@graphcommerce/magento-customer'
2
+ import { useCustomerQuery } from '@graphcommerce/magento-customer'
4
3
  import { sxx } from '@graphcommerce/next-ui'
5
4
  import { Controller, FormAutoSubmit, useFormGqlMutation } from '@graphcommerce/react-hook-form'
6
5
  import type { SwitchProps, SxProps, Theme } from '@mui/material'
@@ -23,7 +22,7 @@ export type CustomerNewsletterToggleProps = Omit<SwitchProps, ''> & {
23
22
  export function CustomerNewsletterToggle(props: CustomerNewsletterToggleProps) {
24
23
  const { disabled, sx = [], children, ...switchProps } = props
25
24
 
26
- const { loading, data } = useQuery(GetCustomerNewsletterToggleDocument, { ssr: false })
25
+ const { loading, data } = useCustomerQuery(GetCustomerNewsletterToggleDocument)
27
26
  const form = useFormGqlMutation(UpdateNewsletterSubscriptionDocument, {
28
27
  mode: 'onChange',
29
28
  defaultValues: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-newsletter",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.18",
5
+ "version": "9.1.0-canary.20",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,15 +12,15 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.1.0-canary.18",
16
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.18",
17
- "@graphcommerce/graphql": "^9.1.0-canary.18",
18
- "@graphcommerce/magento-cart": "^9.1.0-canary.18",
19
- "@graphcommerce/magento-customer": "^9.1.0-canary.18",
20
- "@graphcommerce/next-ui": "^9.1.0-canary.18",
21
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.18",
22
- "@graphcommerce/react-hook-form": "^9.1.0-canary.18",
23
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.18",
15
+ "@graphcommerce/ecommerce-ui": "^9.1.0-canary.20",
16
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.20",
17
+ "@graphcommerce/graphql": "^9.1.0-canary.20",
18
+ "@graphcommerce/magento-cart": "^9.1.0-canary.20",
19
+ "@graphcommerce/magento-customer": "^9.1.0-canary.20",
20
+ "@graphcommerce/next-ui": "^9.1.0-canary.20",
21
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.20",
22
+ "@graphcommerce/react-hook-form": "^9.1.0-canary.20",
23
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.20",
24
24
  "@lingui/core": "^4.2.1",
25
25
  "@lingui/macro": "^4.2.1",
26
26
  "@lingui/react": "^4.2.1",