Open History to see the last commit
1---
2id: UseQueryOptions
3title: UseQueryOptions
4---
5β
6Defined in: [preact-query/src/types.ts:64](https://github.com/TanStack/query/blob/main/packages/preact-query/src/types.ts#L64)
7β
8## Extends
9β
10- `OmitKeyof`\<[`UseBaseQueryOptions`](UseBaseQueryOptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryFnData`, `TQueryKey`\>, `"suspense"`\>
11β
12## Type Parameters
13β
14### TQueryFnData
15β
16`TQueryFnData` = `unknown`
17β
18### TError
19β
20`TError` = `DefaultError`
21β
22### TData
23β
24`TData` = `TQueryFnData`
25β
26### TQueryKey
27β
28`TQueryKey` *extends* `QueryKey` = `QueryKey`
29β
30## Properties
31β
32### subscribed?
33β
34```ts
35optional subscribed: boolean;
36```
37β
38Defined in: [preact-query/src/types.ts:45](https://github.com/TanStack/query/blob/main/packages/preact-query/src/types.ts#L45)
39β
40Set this to `false` to unsubscribe this observer from updates to the query cache.
41Defaults to `true`.
42β
43#### Inherited from
44β
45```ts
46OmitKeyof.subscribed
47```