fui-material 2.7.4 → 2.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -8224,18 +8224,21 @@ function useFManualApiQuery(queryKey, url, initialParams, config, options) {
|
|
|
8224
8224
|
if (updatedParams) nextQueryKey.push(updatedParams);
|
|
8225
8225
|
if (updatedUrlParams) nextQueryKey.push(updatedUrlParams);
|
|
8226
8226
|
try {
|
|
8227
|
-
const
|
|
8227
|
+
const rawResult = await queryClient.fetchQuery({
|
|
8228
8228
|
queryKey: nextQueryKey,
|
|
8229
8229
|
queryFn: ({ signal }) => fetcher(updatedParams, updatedUrlParams, updatedDopUrl, signal),
|
|
8230
8230
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8231
8231
|
staleTime: restOptions.staleTime
|
|
8232
8232
|
});
|
|
8233
|
-
|
|
8233
|
+
if (restOptions.select) {
|
|
8234
|
+
return restOptions.select(rawResult);
|
|
8235
|
+
}
|
|
8236
|
+
return rawResult;
|
|
8234
8237
|
} catch (error2) {
|
|
8235
8238
|
handleSideErrors(error2);
|
|
8236
8239
|
throw error2;
|
|
8237
8240
|
}
|
|
8238
|
-
}, [params, urlParams, dopUrl, queryKey, fetcher, queryClient, restOptions
|
|
8241
|
+
}, [params, urlParams, dopUrl, queryKey, fetcher, queryClient, restOptions, handleSideErrors]);
|
|
8239
8242
|
return { ...query, run, params, urlParams };
|
|
8240
8243
|
}
|
|
8241
8244
|
const waterError = "_waterError_10t7p_1";
|