mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-03 14:16:28 +00:00
fix(customHomePage): add chaching to prevent reloading of hierarchy module on move (#14327)
This commit is contained in:
parent
694c18cfe8
commit
a3f3e16e80
@ -9,7 +9,7 @@ export default function useDomainsByUrns(urns: string[]) {
|
||||
variables: {
|
||||
urns,
|
||||
},
|
||||
fetchPolicy: 'cache-and-network',
|
||||
fetchPolicy: 'cache-first',
|
||||
skip: urns.length === 0,
|
||||
});
|
||||
|
||||
|
||||
@ -63,6 +63,7 @@ export default function useGlossaryNodesAndTerms({
|
||||
},
|
||||
},
|
||||
skip: !filters || skip,
|
||||
fetchPolicy: glossaryNodesAndTermsUrns?.length ? 'cache-first' : undefined,
|
||||
});
|
||||
|
||||
const entities = useMemo(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user