# watchRig

function in `@dioramajs/diorama/model/rig`

```ts
import { watchRig } from '@dioramajs/diorama/model/rig'
```

Calls `listener` with the element's rig now if there is one, then on every change: a new rig
when `model` rebuilds, undefined when it goes. Stops with the signal.

```ts
function watchRig(
  element: Element,
  listener: Listener,
  signal: AbortSignal,
): void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `element` | `Element` |  |
| `listener` | `Listener` |  |
| `signal` | `AbortSignal` |  |

Also exported from `@dioramajs/model/rig`.

Defined in [packages/model/src/rig.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/model/src/rig.ts#L55).
