# Function: useLive()

```ts
function useLive<T>(
   spaceId, 
   load, 
   deps
): T | undefined;
```

Defined in: [packages/react/src/use-live.ts:16](https://github.com/leifriksheim/minca/blob/main/react/src/use-live.ts#L16)

Loads something from a space, and loads it again whenever that space's
records or connection change, locally or by sync.

The named hooks (`useRecord`, `useCollections`, …) cover the usual reads;
this is for anything else.

## Type Parameters

| Type Parameter |
| ------ |
| <a id="type-parameter-t"></a> `T` |

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `spaceId` | `string` | The space to follow |
| `load` | (`node`) => `Promise`\<`T`\> | What to read, given the node |
| `deps` | readonly `unknown`[] | When these change, start over |

## Returns

`T` \| `undefined`

The latest value, or undefined until the first load finishes
