@graphcommerce/graphql 9.1.0-canary.28 → 9.1.0-canary.29
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 +6 -0
- package/hooks/usePrivateQuery.ts +3 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2525](https://github.com/graphcommerce-org/graphcommerce/pull/2525) [`e1e132d`](https://github.com/graphcommerce-org/graphcommerce/commit/e1e132d076fbc6b3a081a245e51cb2bc91b0c707) - usePrivateQuery now disables masking when an error occurs. ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
3
9
|
## 9.1.0-canary.28
|
|
4
10
|
|
|
5
11
|
## 9.1.0-canary.27
|
package/hooks/usePrivateQuery.ts
CHANGED
|
@@ -57,7 +57,9 @@ export function usePrivateQuery<
|
|
|
57
57
|
// If the user is logged in we might need to show a skeleton:
|
|
58
58
|
let mask = isSsr
|
|
59
59
|
if (!isSsr && context) {
|
|
60
|
-
mask = !skip
|
|
60
|
+
mask = !skip
|
|
61
|
+
? !clientQuery.data && !clientQuery.previousData && !clientQuery.error
|
|
62
|
+
: !clientQuery.data
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
// If this method is called within an PrivateQueryMask, we skip this complete functionality so we show the parent mask.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/graphql",
|
|
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.29",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"graphql": "^16.10.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.
|
|
31
|
-
"@graphcommerce/graphql-codegen-near-operation-file": "9.1.0-canary.
|
|
32
|
-
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "9.1.0-canary.
|
|
33
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
34
|
-
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.
|
|
30
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.29",
|
|
31
|
+
"@graphcommerce/graphql-codegen-near-operation-file": "9.1.0-canary.29",
|
|
32
|
+
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "9.1.0-canary.29",
|
|
33
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.29",
|
|
34
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.29",
|
|
35
35
|
"@graphql-mesh/plugin-http-details-extensions": "*",
|
|
36
36
|
"react": "^18.2.0",
|
|
37
37
|
"react-dom": "^18.2.0"
|