tahamajs/IE / Projects /front /node_modules /@tanstack /react-query /build /modern /useSuspenseInfiniteQuery.js
tahamajs/IE / Projects /front /node_modules /@tanstack /react-query /build /modern /useSuspenseInfiniteQuery.js
| "use client"; | |
| // src/useSuspenseInfiniteQuery.ts | |
| import { InfiniteQueryObserver, skipToken } from "@tanstack/query-core"; | |
| import { useBaseQuery } from "./useBaseQuery.js"; | |
| import { defaultThrowOnError } from "./suspense.js"; | |
| function useSuspenseInfiniteQuery(options, queryClient) { | |
| if (process.env.NODE_ENV !== "production") { | |
| if (options.queryFn === skipToken) { | |
| console.error("skipToken is not allowed for useSuspenseInfiniteQuery"); | |
| } | |
| } | |
| return useBaseQuery( | |
| { | |
| ...options, | |
| enabled: true, | |
| suspense: true, | |
| throwOnError: defaultThrowOnError | |
| }, | |
| InfiniteQueryObserver, | |
| queryClient | |
| ); | |
| } | |
| export { | |
| useSuspenseInfiniteQuery | |
| }; | |
| //# sourceMappingURL=useSuspenseInfiniteQuery.js.map |
Xet Storage Details
- Size:
- 738 Bytes
- Xet hash:
- c9a186e0a4b6f8644e56230de3b0cf0e30222df9fb643d4684763131b7b4042b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.