Skip to content

Commit

Permalink
Set fetch policy and next fetch policy for cms block query (#3131)
Browse files Browse the repository at this point in the history
Co-authored-by: Devagouda <40405790+dpatil-magento@users.noreply.github.com>
  • Loading branch information
Vasilii Burlacu and dpatil-magento committed May 6, 2021
1 parent 841335d commit 5be20e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/venia-ui/lib/components/CmsBlock/cmsBlock.js
Expand Up @@ -14,7 +14,9 @@ const CmsBlockGroup = props => {
const classes = mergeClasses(defaultClasses, props.classes);

const { loading, error, data } = useQuery(GET_CMS_BLOCKS, {
variables: { identifiers }
variables: { identifiers },
fetchPolicy: 'cache-and-network',
nextFetchPolicy: 'cache-first'
});

if (!data) {
Expand Down

0 comments on commit 5be20e3

Please sign in to comment.