Merged in feat/rework-contentstack (pull request #3493)
Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
This commit is contained in:
+1
-20
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardGallery_DestinationOverviewPage,
|
||||
CardGallery_DestinationOverviewPageRefs,
|
||||
} from "../../Fragments/Blocks/CardGallery.graphql"
|
||||
import { CardGallery_DestinationOverviewPage } from "../../Fragments/Blocks/CardGallery.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationOverviewPage = gql`
|
||||
@@ -34,22 +31,6 @@ export const GetDestinationOverviewPage = gql`
|
||||
${CardGallery_DestinationOverviewPage}
|
||||
`
|
||||
|
||||
export const GetDestinationOverviewPageRefs = gql`
|
||||
query GetDestinationOverviewPageRefs($locale: String!, $uid: String!) {
|
||||
destination_overview_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardGallery_DestinationOverviewPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardGallery_DestinationOverviewPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsDestinationOverviewPage = gql`
|
||||
query GetDaDeEnUrlsDestinationOverviewPage($uid: String!) {
|
||||
de: destination_overview_page(locale: "de", uid: $uid) {
|
||||
|
||||
Reference in New Issue
Block a user