File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
react-components/src/hooks/cad Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,24 @@ import { type CadModelOptions } from '../../components/Reveal3DResources/types';
8
8
import { type ThreeDModelFdmMappings } from '../types' ;
9
9
import { DEFAULT_QUERY_STALE_TIME } from '../../utilities/constants' ;
10
10
import { useAssetMappingAndNode3DCache } from '../../components/CacheProvider/CacheProvider' ;
11
- import { useAssetMappedNodesForRevisions } from './useAssetMappedNodesForRevisions' ;
12
11
import { isDefined } from '../../utilities/isDefined' ;
13
12
import {
14
13
createFdmKey ,
15
14
createModelRevisionKey
16
15
} from '../../components/CacheProvider/idAndKeyTranslation' ;
17
- import { useMemo } from 'react' ;
16
+ import { useContext , useMemo } from 'react' ;
18
17
import { queryKeys } from '../../utilities/queryKeys' ;
18
+ import { AssetMappingsContext } from '../AssetMappings.context' ;
19
19
20
20
export const useHybridAssetMappings = (
21
21
hybridFdmAssetExternalIds : DmsUniqueIdentifier [ ] ,
22
22
models : CadModelOptions [ ]
23
23
) : UseQueryResult < ThreeDModelFdmMappings [ ] > => {
24
+
25
+ const {
26
+ useAssetMappedNodesForRevisions,
27
+ } = useContext ( AssetMappingsContext ) ;
28
+
24
29
const assetMappingAndNode3DCache = useAssetMappingAndNode3DCache ( ) ;
25
30
const { data : modelWithAssetMappings } = useAssetMappedNodesForRevisions ( models ) ;
26
31
You can’t perform that action at this time.
0 commit comments