# Interface: QueryState\<R\>

Defined in: [packages/react/src/use-query.ts:5](https://github.com/leifriksheim/minca/blob/main/react/src/use-query.ts#L5)

## Type Parameters

| Type Parameter |
| ------ |
| <a id="type-parameter-r"></a> `R` |

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-error"></a> `error` | `readonly` | `Error` \| `null` | Why the query failed — usually a malformed query, saying what to fix | [packages/react/src/use-query.ts:9](https://github.com/leifriksheim/minca/blob/main/react/src/use-query.ts#L9) |
| <a id="property-result"></a> `result` | `readonly` | `R` \| `null` | The latest result, or null until the first one arrives. `result.complete` is false while what it needs is still on its way. | [packages/react/src/use-query.ts:7](https://github.com/leifriksheim/minca/blob/main/react/src/use-query.ts#L7) |
