tahamajs/IE / Projects /front /node_modules /@tanstack /react-query /build /legacy /useIsFetching.js
| "use client"; | |
| // src/useIsFetching.ts | |
| import * as React from "react"; | |
| import { notifyManager } from "@tanstack/query-core"; | |
| import { useQueryClient } from "./QueryClientProvider.js"; | |
| function useIsFetching(filters, queryClient) { | |
| const client = useQueryClient(queryClient); | |
| const queryCache = client.getQueryCache(); | |
| return React.useSyncExternalStore( | |
| React.useCallback( | |
| (onStoreChange) => queryCache.subscribe(notifyManager.batchCalls(onStoreChange)), | |
| [queryCache] | |
| ), | |
| () => client.isFetching(filters), | |
| () => client.isFetching(filters) | |
| ); | |
| } | |
| export { | |
| useIsFetching | |
| }; | |
| //# sourceMappingURL=useIsFetching.js.map |
Xet Storage Details
- Size:
- 647 Bytes
- Xet hash:
- 1e310c9e7e12f642589b14664770de3a38438f572572e7bd09dd467fc53dd3e6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.