@graphcommerce/graphql 9.1.0-canary.28 → 9.1.0-canary.31

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,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.0-canary.31
4
+
5
+ ## 9.1.0-canary.30
6
+
7
+ ## 9.1.0-canary.29
8
+
9
+ ### Patch Changes
10
+
11
+ - [#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))
12
+
3
13
  ## 9.1.0-canary.28
4
14
 
5
15
  ## 9.1.0-canary.27
@@ -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 ? !clientQuery.data && !clientQuery.previousData : !clientQuery.data
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.28",
5
+ "version": "9.1.0-canary.31",
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.28",
31
- "@graphcommerce/graphql-codegen-near-operation-file": "9.1.0-canary.28",
32
- "@graphcommerce/graphql-codegen-relay-optimizer-plugin": "9.1.0-canary.28",
33
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.28",
34
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.28",
30
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.31",
31
+ "@graphcommerce/graphql-codegen-near-operation-file": "9.1.0-canary.31",
32
+ "@graphcommerce/graphql-codegen-relay-optimizer-plugin": "9.1.0-canary.31",
33
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.31",
34
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.31",
35
35
  "@graphql-mesh/plugin-http-details-extensions": "*",
36
36
  "react": "^18.2.0",
37
37
  "react-dom": "^18.2.0"