@graphcommerce/graphcms-ui 3.2.0-canary.5 → 3.2.0-canary.6

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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.2.0-canary.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e2683dbfc`](https://github.com/graphcommerce-org/graphcommerce/commit/e2683dbfce440b8e1f745228d8ca4747156c87e6) - GraphQL HttpLink wasn't created, not allow to generate new pages on Vercel. ([@paales](https://github.com/paales))
8
+
3
9
  ## 3.2.0-canary.5
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphcms-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.2.0-canary.5",
5
+ "version": "3.2.0-canary.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -1,5 +1,6 @@
1
1
  import { GraphQLProviderProps } from '@graphcommerce/graphql'
2
2
  import type { PluginProps } from '@graphcommerce/next-config'
3
+ import { useMemo } from 'react'
3
4
  import { createHygraphLink } from '../links/createHygraphLink'
4
5
 
5
6
  export const component = 'GraphQLProvider'
@@ -7,7 +8,9 @@ export const exported = '@graphcommerce/graphql'
7
8
 
8
9
  function HygraphGraphqlProvider(props: PluginProps<GraphQLProviderProps>) {
9
10
  const { Prev, links = [], ...rest } = props
10
- return <Prev {...rest} links={[...links, createHygraphLink(rest.router.locale)]} />
11
+
12
+ const hygraphLink = useMemo(() => createHygraphLink(rest.router.locale), [rest.router.locale])
13
+ return <Prev {...rest} links={[...links, hygraphLink]} />
11
14
  }
12
15
 
13
16
  export const Plugin = HygraphGraphqlProvider