@@ -77,7 +77,7 @@ export function useFilteredPaths({
77
77
if ( ! getSubTreePaths ) {
78
78
return undefined ;
79
79
}
80
- return async ( { imodelAccess /* abortSignal */ } ) => {
80
+ return async ( { imodelAccess, abortSignal } ) => {
81
81
try {
82
82
const paths = await getSubTreePaths ( {
83
83
createInstanceKeyPaths : async ( { targetItems } ) =>
@@ -87,7 +87,7 @@ export function useFilteredPaths({
87
87
idsCache : getModelsTreeIdsCache ( ) ,
88
88
hierarchyConfig : hierarchyConfiguration ,
89
89
limit : "unbounded" ,
90
- // abortSignal,
90
+ abortSignal,
91
91
} ) ,
92
92
} ) ;
93
93
return paths . map ( ( path ) => HierarchyFilteringPath . normalize ( path ) . path ) ;
@@ -111,7 +111,7 @@ export function useFilteredPaths({
111
111
} ;
112
112
113
113
if ( loadFocusedItems ) {
114
- return async ( { imodelAccess /* abortSignal */ } ) => {
114
+ return async ( { imodelAccess, abortSignal } ) => {
115
115
try {
116
116
const focusedItems = await collectFocusedItems ( loadFocusedItems ) ;
117
117
return await createFilteringPathsResult ( {
@@ -121,9 +121,9 @@ export function useFilteredPaths({
121
121
idsCache : getModelsTreeIdsCache ( ) ,
122
122
targetItems : focusedItems ,
123
123
hierarchyConfig : hierarchyConfiguration ,
124
- // abortSignal,
124
+ abortSignal,
125
125
} ) . then ( ( createdPaths ) => createdPaths . map ( ( path ) => ( "path" in path ? path : { path, options : { autoExpand : true } } ) ) ) ,
126
- getSubTreePaths : async ( ) => ( getSubTreePathsInternal ? getSubTreePathsInternal ( { imodelAccess /* abortSignal */ } ) : undefined ) ,
126
+ getSubTreePaths : async ( ) => ( getSubTreePathsInternal ? getSubTreePathsInternal ( { imodelAccess, abortSignal } ) : undefined ) ,
127
127
handlePaths : async ( paths ) => handlePaths ( paths , imodelAccess ) ,
128
128
} ) ;
129
129
} catch ( e ) {
@@ -139,7 +139,7 @@ export function useFilteredPaths({
139
139
}
140
140
141
141
if ( getFilteredPaths ) {
142
- return async ( { imodelAccess /* abortSignal */ } ) => {
142
+ return async ( { imodelAccess, abortSignal } ) => {
143
143
try {
144
144
return await createFilteringPathsResult ( {
145
145
getFilteringPaths : async ( ) =>
@@ -151,11 +151,11 @@ export function useFilteredPaths({
151
151
idsCache : getModelsTreeIdsCache ( ) ,
152
152
hierarchyConfig : hierarchyConfiguration ,
153
153
limit : "unbounded" ,
154
- // abortSignal,
154
+ abortSignal,
155
155
} ) ,
156
156
filter,
157
157
} ) ,
158
- getSubTreePaths : async ( ) => ( getSubTreePathsInternal ? getSubTreePathsInternal ( { imodelAccess /* abortSignal */ } ) : undefined ) ,
158
+ getSubTreePaths : async ( ) => ( getSubTreePathsInternal ? getSubTreePathsInternal ( { imodelAccess, abortSignal } ) : undefined ) ,
159
159
handlePaths : async ( paths ) => handlePaths ( paths , imodelAccess ) ,
160
160
} ) ;
161
161
} catch ( e ) {
@@ -171,7 +171,7 @@ export function useFilteredPaths({
171
171
}
172
172
173
173
if ( filter ) {
174
- return async ( { imodelAccess /* abortSignal */ } ) => {
174
+ return async ( { imodelAccess, abortSignal } ) => {
175
175
onFeatureUsed ( { featureId : "filtering" , reportInteraction : true } ) ;
176
176
try {
177
177
return await createFilteringPathsResult ( {
@@ -181,9 +181,9 @@ export function useFilteredPaths({
181
181
label : filter ,
182
182
idsCache : getModelsTreeIdsCache ( ) ,
183
183
hierarchyConfig : hierarchyConfiguration ,
184
- // abortSignal,
184
+ abortSignal,
185
185
} ) . then ( ( createdPaths ) => createdPaths . map ( ( path ) => ( "path" in path ? path : { path, options : { autoExpand : true } } ) ) ) ,
186
- getSubTreePaths : async ( ) => ( getSubTreePathsInternal ? getSubTreePathsInternal ( { imodelAccess /* abortSignal */ } ) : undefined ) ,
186
+ getSubTreePaths : async ( ) => ( getSubTreePathsInternal ? getSubTreePathsInternal ( { imodelAccess, abortSignal } ) : undefined ) ,
187
187
handlePaths : async ( paths ) => handlePaths ( paths , imodelAccess ) ,
188
188
} ) ;
189
189
} catch ( e ) {
0 commit comments