Skip to main content
Version: 2.x

ContextCallback type

@microsoft/fast-element/context.js > ContextCallback

ContextCallback type

A callback which is provided by a context requester and is called with the value satisfying the request. This callback can be called multiple times by context providers as the requested value is changed.

Signature:

export declare type ContextCallback<ValueType> = (value: ValueType, dispose?: () => void) => void;