SIGN IN SIGN UP
TanStack / query UNCLAIMED

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

48981 0 0 TypeScript
feat: Preact Adapter (#9935) * initial setup -- duplicated + package.json edited * simple preact updations * missed a React.ReactNode * testing grunt work (preact library + other small issues + ErrorBoundary custom implementation) * missed a few * Adds ErrorBoundary (from react-error-boundary, but scaled down for preact) -- fixes a lot of tests, which expect react-related functionality * useSuspenseQueries left -- removed the useQuery.promise tests * forgot the console logs * useSuspenseQueries 2 resolved; tests done * ci: apply automated fixes * fix: example * fix: configs should be symlinks * fix: sync versions for npm-run-all2 * ref: re-sync runall2 * ref: go back to 5.0.0 * ref: remove changelog * react-query -> preact-query * remove use client directive + added the useSyncExternalStore (decoupled from compat) * remove the react remnants * generate docs * typescript eslint * docs * vite config fix * docs now reference react docs (most of them atleast) * code-rabbit issues addressed * <div/> lol * fix: docs * ci: apply automated fixes * fix: lockfile * fix: duplicated versions * lockfile (I cooked or am I cooked) * ci: apply automated fixes * Making small edits to fix versioning, warnings, and lock * unhandled error compat * Fixing CI * Fixed the CI errors * ci: apply automated fixes * Prettier format * Update changeset for Preact Adapter feature --------- Co-authored-by: TkDodo <office@dorfmeister.cc> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-10 05:02:20 -06:00
---
id: UsePrefetchQueryOptions
title: UsePrefetchQueryOptions
---
# Interface: UsePrefetchQueryOptions\<TQueryFnData, TError, TData, TQueryKey\>
Defined in: [preact-query/src/types.ts:49](https://github.com/theVedanta/query/blob/main/packages/preact-query/src/types.ts#L49)
## Extends
- `OmitKeyof`\<`FetchQueryOptions`\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`\>, `"queryFn"`\>
## Type Parameters
### TQueryFnData
`TQueryFnData` = `unknown`
### TError
`TError` = `DefaultError`
### TData
`TData` = `TQueryFnData`
### TQueryKey
`TQueryKey` *extends* `QueryKey` = `QueryKey`
## Properties
### queryFn?
```ts
optional queryFn: QueryFunction<TQueryFnData, TQueryKey, never>;
```
Defined in: [preact-query/src/types.ts:58](https://github.com/theVedanta/query/blob/main/packages/preact-query/src/types.ts#L58)