fix(customHomePage): add chaching to prevent reloading of hierarchy module on move (#14327)

This commit is contained in:
v-tarasevich-blitz-brain 2025-08-06 21:02:51 +03:00 committed by GitHub
parent 694c18cfe8
commit a3f3e16e80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ export default function useDomainsByUrns(urns: string[]) {
variables: {
urns,
},
fetchPolicy: 'cache-and-network',
fetchPolicy: 'cache-first',
skip: urns.length === 0,
});

View File

@ -63,6 +63,7 @@ export default function useGlossaryNodesAndTerms({
},
},
skip: !filters || skip,
fetchPolicy: glossaryNodesAndTermsUrns?.length ? 'cache-first' : undefined,
});
const entities = useMemo(() => {