Merged in revert-gql (pull request #3104)
Revert gql * Revert "Merged in fix/system-fragment (pull request #3102)" This reverts commit0d479eb337. * Revert "Merged in chore/replace-graphql-tag/loader (pull request #3096)" This reverts commite9bd159e98.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { type DocumentNode } from "graphql"
|
||||
import { cache } from "react"
|
||||
|
||||
import { createCounter } from "@scandic-hotels/common/telemetry"
|
||||
@@ -65,8 +64,8 @@ import type {
|
||||
|
||||
interface BreadcrumbsPageData<T> {
|
||||
dataKey: keyof T
|
||||
refQuery: string | DocumentNode
|
||||
query: string | DocumentNode
|
||||
refQuery: string
|
||||
query: string
|
||||
}
|
||||
|
||||
const getBreadcrumbs = cache(async function fetchMemoizedBreadcrumbs<T>(
|
||||
|
||||
@@ -28,12 +28,11 @@ import { affix, getCityData, getCountryData } from "./utils"
|
||||
|
||||
import type { LanguageSwitcherData } from "@scandic-hotels/common/constants/language"
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
import type { DocumentNode } from "graphql"
|
||||
|
||||
import type { RawMetadataSchema } from "./output"
|
||||
|
||||
const fetchMetadata = cache(async function fetchMemoizedMetadata<T>(
|
||||
query: string | DocumentNode,
|
||||
query: string,
|
||||
{ uid, lang }: { uid: string; lang: Lang }
|
||||
) {
|
||||
const getMetadataCounter = createCounter("trpc.contentstack", "metadata.get")
|
||||
|
||||
Reference in New Issue
Block a user