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,8 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
|
||||
export const AllCampaigns = gql`
|
||||
fragment AllCampaigns on CampaignOverviewPageBlocksAllCampaigns {
|
||||
all_campaigns {
|
||||
@@ -39,21 +36,3 @@ export const AllCampaigns = gql`
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const AllCampaignsRefs = gql`
|
||||
fragment AllCampaignsRefs on CampaignOverviewPageBlocksAllCampaigns {
|
||||
all_campaigns {
|
||||
campaignsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CampaignPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${CampaignPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user