From af73f69dbf8ec28e609108eae6ba407174f88e35 Mon Sep 17 00:00:00 2001 From: glo80771 <127736464+glo80771@users.noreply.github.com> Date: Wed, 27 Sep 2023 16:55:05 +0530 Subject: [PATCH] PWA-3166::Queries fire multiple times (#4143) Co-authored-by: Aanchal Pawar <97873570+glo82145@users.noreply.github.com> --- .../lib/talons/RootComponents/Category/useCategory.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/peregrine/lib/talons/RootComponents/Category/useCategory.js b/packages/peregrine/lib/talons/RootComponents/Category/useCategory.js index cf041d1c816..a6125c4b3e0 100644 --- a/packages/peregrine/lib/talons/RootComponents/Category/useCategory.js +++ b/packages/peregrine/lib/talons/RootComponents/Category/useCategory.js @@ -100,10 +100,7 @@ export const useCategory = props => { called: introspectionCalled, data: introspectionData, loading: introspectionLoading - } = useQuery(getFilterInputsQuery, { - fetchPolicy: 'cache-and-network', - nextFetchPolicy: 'cache-first' - }); + } = useQuery(getFilterInputsQuery); // Create a type map we can reference later to ensure we pass valid args // to the graphql query.