Provides callback hooks for the consuming system to get feedback from ValueHosts.

interface IValueHostCallbacks {
    onValueHostInstanceStateChanged?: null | ValueHostInstanceStateChangedHandler;
    onValueChanged?: null | ValueChangedHandler;
}

Hierarchy (view full)

Properties

onValueHostInstanceStateChanged?: null | ValueHostInstanceStateChangedHandler

Called when any ValueHost had its ValueHostInstanceState changed. React example: React component useState feature retains this value and needs to know when to call the setValueHostInstanceState() with the stateToRetain. You can setup the same callback on individual ValueHosts. Here, it aggregates all ValueHost notifications.

onValueChanged?: null | ValueChangedHandler

Called when the ValueHost's Value property has changed. If setup, you can prevent it from being fired with the options parameter of setValue() to avoid round trips where you already know the details. You can setup the same callback on individual ValueHosts. Here, it aggregates all ValueHost notifications.

Generated using TypeDoc v0.25.12