# Function: useWatched()

```ts
function useWatched<T>(
   load, 
   deps, 
   __namedParameters?
): T | undefined;
```

Defined in: [packages/react/src/use-watched.ts:20](https://github.com/leifriksheim/minca/blob/main/react/src/use-watched.ts#L20)

Loads something from the node and keeps it current: again when `deps`
change, after the events `when` picks out, and every `every` ms. One load
at a time; asks during a load fold into one more. Undefined until the first
load; a failed load keeps what was there.

## Type Parameters

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

## Parameters

| Parameter | Type |
| ------ | ------ |
| `load` | (`node`) => `Promise`\<`T`\> |
| `deps` | `DependencyList` |
| `__namedParameters?` | [`Watch`](https://minca.dev/api/react/interfaces/Watch.md) |

## Returns

`T` \| `undefined`
