Function useEventReceived
- useEventReceived(event: JDEvent, handler: ((event: JDEvent) => void), deps?: DependencyList): void
-
Parameters
-
event: JDEvent
-
handler: ((event: JDEvent) => void)
-
- (event: JDEvent): void
-
Returns void
-
Optional
deps: DependencyList
Returns void
Registers a handler to run whenever the event is received from the bus