Merged in revert-gql (pull request #3104)

Revert gql

* Revert "Merged in fix/system-fragment (pull request #3102)"

This reverts commit 0d479eb337.

* Revert "Merged in chore/replace-graphql-tag/loader (pull request #3096)"

This reverts commit e9bd159e98.
This commit is contained in:
Linus Flood
2025-11-07 13:13:28 +00:00
parent cab85f3ffd
commit 5770dcdd9c
291 changed files with 8000 additions and 11733 deletions

View File

@@ -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>(

View File

@@ -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")