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,17 +1,8 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_AccountPage,
|
||||
Accordion_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
DynamicContent_AccountPage,
|
||||
DynamicContent_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import {
|
||||
Shortcuts_AccountPage,
|
||||
Shortcuts_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { Accordion_AccountPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { DynamicContent_AccountPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Shortcuts_AccountPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { TextContent_AccountPage } from "../../Fragments/Blocks/TextContent.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
@@ -48,26 +39,6 @@ export const GetAccountPage = gql`
|
||||
${TextContent_AccountPage}
|
||||
`
|
||||
|
||||
export const GetAccountPageRefs = gql`
|
||||
query GetAccountPageRefs($locale: String!, $uid: String!) {
|
||||
account_page(locale: $locale, uid: $uid) {
|
||||
content {
|
||||
__typename
|
||||
...Accordion_AccountPageRefs
|
||||
...DynamicContent_AccountPageRefs
|
||||
...Shortcuts_AccountPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${Accordion_AccountPageRefs}
|
||||
${DynamicContent_AccountPageRefs}
|
||||
${Shortcuts_AccountPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsAccountPage = gql`
|
||||
query GetDaDeEnUrlsAccountPage($uid: String!) {
|
||||
de: account_page(locale: "de", uid: $uid) {
|
||||
|
||||
Reference in New Issue
Block a user