mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Add a global fetch policy config for graphql clients
This commit is contained in:
@@ -103,9 +103,7 @@ const TemplateSettings = () => {
|
||||
const { data: categories, loading: categoriesLoading } = useQuery<
|
||||
GetAllCategoriesQuery,
|
||||
GetAllCategoriesQueryVariables
|
||||
>(GET_ALL_CATEGORIES, {
|
||||
fetchPolicy: 'network-only',
|
||||
});
|
||||
>(GET_ALL_CATEGORIES);
|
||||
|
||||
const [getFeatures, { loading: featuresLoading }] = useLazyQuery<
|
||||
GetAllFeaturesQuery,
|
||||
@@ -113,8 +111,7 @@ const TemplateSettings = () => {
|
||||
>(GET_ALL_FEATURES, {
|
||||
onCompleted({ getAllFeatures }) {
|
||||
setAvailableFeatures(getAllFeatures);
|
||||
},
|
||||
fetchPolicy: 'network-only',
|
||||
}
|
||||
});
|
||||
|
||||
const [getTemplate, { loading: templateLoading }] = useLazyQuery<
|
||||
@@ -123,8 +120,7 @@ const TemplateSettings = () => {
|
||||
>(GET_TEMPLATE_BY_ID, {
|
||||
onCompleted({ getTemplateById }) {
|
||||
setTemplate(getTemplateById);
|
||||
},
|
||||
fetchPolicy: 'network-only',
|
||||
}
|
||||
});
|
||||
|
||||
const [updateTemplate, { loading }] = useMutation<
|
||||
|
||||
Reference in New Issue
Block a user