mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-06 23:55:08 +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: {
|
variables: {
|
||||||
urns,
|
urns,
|
||||||
},
|
},
|
||||||
fetchPolicy: 'cache-and-network',
|
fetchPolicy: 'cache-first',
|
||||||
skip: urns.length === 0,
|
skip: urns.length === 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -63,6 +63,7 @@ export default function useGlossaryNodesAndTerms({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
skip: !filters || skip,
|
skip: !filters || skip,
|
||||||
|
fetchPolicy: glossaryNodesAndTermsUrns?.length ? 'cache-first' : undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
const entities = useMemo(() => {
|
const entities = useMemo(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user