# MachinesState

<!-- https://uncage.vercel.app/docs/api/react/interfaces/machinesstate/ -->

Defined in: react/src/state.ts:127

Connected mode: the user's computers on an Uncage hub. The mode is detected from the server:
a hub serves `GET /machines`; a local daemon answers 404 (`'local'`). Until a probe succeeds
(or after a probe failed for another reason) it is `'unknown'`, which UIs treat like local.

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
| <a id="property-error"></a> `error?` | `UncageClientError` | The last failed `loadMachines`/`loadInstallInfo` (cleared by the next success). | react/src/state.ts:136 |
| <a id="property-install"></a> `install?` | [`InstallInfo`](https://uncage.vercel.app/docs/api/react/interfaces/installinfo.md) | Install/setup commands (`loadInstallInfo`). | react/src/state.ts:134 |
| <a id="property-list"></a> `list` | `object`[] | - | react/src/state.ts:129 |
| <a id="property-loading"></a> `loading` | `boolean` | - | react/src/state.ts:130 |
| <a id="property-mode"></a> `mode` | `"unknown"` \| `"local"` \| `"connected"` | - | react/src/state.ts:128 |
| <a id="property-selectedid"></a> `selectedId?` | `string` | The computer new sessions run on (kept while listed; else the first online one). | react/src/state.ts:132 |
