> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# OnValueChangeCallback (function)

[Watchable](/api-reference/websdk5/core/watchable/overview)

`OnValueChangeCallback(newValue: T, oldValue: T): unknown`

Callback function to be triggered when a value has changed. The return value will be ignored

**Parameters**

| Parameter  | Type | Requirement | Description                                |
| ---------- | ---- | ----------- | ------------------------------------------ |
| `newValue` | `T`  | Required    | New value of the observable property.      |
| `oldValue` | `T`  | Required    | Previous value of the observable property. |

**Returns:** unknown