--- id: UseSuspenseQueryOptions title: UseSuspenseQueryOptions --- Defined in: [react-query/src/types.ts:196](https://github.com/TanStack/query/blob/main/packages/react-query/src/types.ts#L196) The options accepted by `useSuspenseQuery`. Same as [UseQueryOptions](UseQueryOptions.md), minus `enabled`, `throwOnError`, and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so those options don't apply. ## Extends - `OmitKeyof`\<[`UseQueryOptions`](UseQueryOptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`\>, `"queryFn"` \| `"enabled"` \| `"throwOnError"` \| `"placeholderData"`\> ## Type Parameters ### TQueryFnData `TQueryFnData` = `unknown` The type your `queryFn` resolves to. ### TError `TError` = `DefaultError` The type of errors your `queryFn` may throw. ### TData `TData` = `TQueryFnData` The type `data` ends up as after `select` runs. Defaults to `TQueryFnData` when no `select` is used. ### TQueryKey `TQueryKey` *extends* `QueryKey` = `QueryKey` The type of your `queryKey`. ## Properties ### queryFn? ```ts optional queryFn: QueryFunction; ``` Defined in: [react-query/src/types.ts:209](https://github.com/TanStack/query/blob/main/packages/react-query/src/types.ts#L209) `skipToken` is not allowed here — Suspense hooks cannot render a "disabled" state, so a query function must always be provided, unless a default query function has been defined. *** ### subscribed? ```ts optional subscribed: boolean; ``` Defined in: [react-query/src/types.ts:65](https://github.com/TanStack/query/blob/main/packages/react-query/src/types.ts#L65) Set this to `false` to unsubscribe this observer from updates to the query cache. #### Default Value ```ts true ``` #### Inherited from ```ts OmitKeyof.subscribed ```