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,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Alert, AlertRef } from "../Fragments/Alert.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
import { Alert } from "../Fragments/Alert.graphql"
|
||||
|
||||
export const GetSiteConfig = gql`
|
||||
query GetSiteConfig($locale: String!) {
|
||||
@@ -24,28 +23,3 @@ export const GetSiteConfig = gql`
|
||||
}
|
||||
${Alert}
|
||||
`
|
||||
|
||||
export const GetSiteConfigRef = gql`
|
||||
query GetSiteConfigRef($locale: String!) {
|
||||
all_site_config(limit: 1, locale: $locale) {
|
||||
items {
|
||||
sitewide_alert {
|
||||
alerts {
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...AlertRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AlertRef}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user