[O3 Framework](../API.md) / ContextCallback

# Type Alias: ContextCallback()\<T\>

> **ContextCallback**\<`T`\> = (`state`) => `void`

Defined in: [packages/framework/esm-context/src/context.ts:103](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-context/src/context.ts#L103)

## Type Parameters

### T

`T` *extends* `NonNullable`\<`object`\> = `NonNullable`\<`object`\>

## Parameters

### state

`Readonly`\<`T`\> | `null` | `undefined`

## Returns

`void`
