# UseQueryWithSelect

Defined in: [react/src/types.ts:152](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/types.ts#L152)

useQuery hook with chained select support.
- Without select: returns TSelected (from config.select)
- With select: chains on top and returns TFinal

Accepts all useQuery options from React Query documentation.
Select is special: it chains on top of config.select.

## Type Parameters

### TQueryFnData

`TQueryFnData`

### TSelected

`TSelected` = `TQueryFnData`

### TError

`TError` = `Error`

## Call Signature

> **UseQueryWithSelect**(`options?`): `UseQueryResult`\<`TSelected`, `TError`\>

Defined in: [react/src/types.ts:159](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/types.ts#L159)

useQuery hook with chained select support.
- Without select: returns TSelected (from config.select)
- With select: chains on top and returns TFinal

Accepts all useQuery options from React Query documentation.
Select is special: it chains on top of config.select.

### Parameters

#### options?

`Omit`\<`UseQueryOptions`\<`TQueryFnData`, `TError`, `TSelected`, readonly `unknown`[]\>, `"queryKey"` \| `"queryFn"`\> & `object`

### Returns

`UseQueryResult`\<`TSelected`, `TError`\>

## Call Signature

> **UseQueryWithSelect**\<`TFinal`\>(`options`): `UseQueryResult`\<`TFinal`, `TError`\>

Defined in: [react/src/types.ts:169](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/types.ts#L169)

useQuery hook with chained select support.
- Without select: returns TSelected (from config.select)
- With select: chains on top and returns TFinal

Accepts all useQuery options from React Query documentation.
Select is special: it chains on top of config.select.

### Type Parameters

#### TFinal

`TFinal` = `TSelected`

### Parameters

#### options

`Omit`\<`UseQueryOptions`\<`TQueryFnData`, `TError`, `TFinal`, readonly `unknown`[]\>, `"queryKey"` \| `"queryFn"` \| `"select"`\> & `object`

### Returns

`UseQueryResult`\<`TFinal`, `TError`\>