watchEvent - Andrei15193/react-model-view-viewmodel Wiki

API / watchEvent<TEventArgs> hook

Watches the event for changes, whenever the event is raised the callback will be invoked. The callback is not part of the hook dependencies, only the event is.

function watchEvent<TEventArgs>(event: IEvent<TEventArgs>, handler: EventHandler<TEventArgs>, deps?: DependencyList): void

Template Parameters

Parameters