@graphcommerce/magento-store 9.1.0-canary.35 → 9.1.0-canary.37
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 +10 -0
- package/components/Money/Money.tsx +1 -0
- package/package.json +10 -10
- package/plugins/magentoCurrencyCode.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.37
|
|
4
|
+
|
|
5
|
+
## 9.1.0-canary.36
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [`4c92400`](https://github.com/graphcommerce-org/graphcommerce/commit/4c92400733bb3764494298122771d5bd9bacd5a2) - Render prices with a narrowSymbol so users just see $ instead of US$ ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
11
|
+
- [`f0d244e`](https://github.com/graphcommerce-org/graphcommerce/commit/f0d244ef8625e9cd2fc08d8518f8afa1edb3d688) - Solve issue where the currency switcher would result in an additional query ([@paales](https://github.com/paales))
|
|
12
|
+
|
|
3
13
|
## 9.1.0-canary.35
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-store",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.37",
|
|
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.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.
|
|
17
|
-
"@graphcommerce/framer-utils": "^9.1.0-canary.
|
|
18
|
-
"@graphcommerce/graphql": "^9.1.0-canary.
|
|
19
|
-
"@graphcommerce/graphql-mesh": "^9.1.0-canary.
|
|
20
|
-
"@graphcommerce/image": "^9.1.0-canary.
|
|
21
|
-
"@graphcommerce/next-ui": "^9.1.0-canary.
|
|
22
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
23
|
-
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.37",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.37",
|
|
17
|
+
"@graphcommerce/framer-utils": "^9.1.0-canary.37",
|
|
18
|
+
"@graphcommerce/graphql": "^9.1.0-canary.37",
|
|
19
|
+
"@graphcommerce/graphql-mesh": "^9.1.0-canary.37",
|
|
20
|
+
"@graphcommerce/image": "^9.1.0-canary.37",
|
|
21
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.37",
|
|
22
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.37",
|
|
23
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.37",
|
|
24
24
|
"@lingui/core": "^4.2.1",
|
|
25
25
|
"@lingui/macro": "^4.2.1",
|
|
26
26
|
"@lingui/react": "^4.2.1",
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
type usePrivateQueryContext as usePrivateQueryContextType,
|
|
4
4
|
} from '@graphcommerce/graphql'
|
|
5
5
|
import type { PrivateContext } from '@graphcommerce/graphql-mesh'
|
|
6
|
+
import { useCustomerSession } from '@graphcommerce/magento-customer/hooks/useCustomerSession'
|
|
6
7
|
import type { FunctionPlugin, PluginConfig } from '@graphcommerce/next-config'
|
|
7
8
|
import { cookie, useCookie } from '@graphcommerce/next-ui'
|
|
8
9
|
|
|
@@ -27,8 +28,9 @@ export const usePrivateQueryContext: FunctionPlugin<typeof usePrivateQueryContex
|
|
|
27
28
|
prev,
|
|
28
29
|
...args
|
|
29
30
|
) => {
|
|
31
|
+
const awaiting = useCustomerSession().query.loading
|
|
30
32
|
const [currencyCode] = useCookie('Magento-Content-Currency')
|
|
31
33
|
const res = prev(...args)
|
|
32
|
-
if (!currencyCode) return res
|
|
34
|
+
if (!currencyCode || awaiting) return res
|
|
33
35
|
return { ...res, currencyCode }
|
|
34
36
|
}
|