EventDispatcher.dispatch - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / EventDispatcher<TSubject, TEventArgs> / dispatch method
Dispatches a notification to all subscribers.
public dispatch(
subject: TSubject,
args: TEventArgs
): void
Source reference: src/events/EventDispatcher.ts:40
.
-
subject: TSubject
The object raising the event, generally the object which is exposing it. -
args: TEventArgs
A set of arguments that provide context for the event.