- useEventRaised<TEventSource, TValue>(eventName: string | string[], node: TEventSource, query: ((n: TEventSource) => TValue), deps?: DependencyList, isEqual?: ((a: TValue, b: TValue) => boolean)): TValue
-
Type Parameters
-
TEventSource extends IEventSource
-
TValue
Parameters
-
eventName: string | string[]
-
node: TEventSource
-
query: ((n: TEventSource) => TValue)
-
- (n: TEventSource): TValue
-
Returns TValue
-
Optional
deps: DependencyList
-
Optional
isEqual: ((a: TValue, b: TValue) => boolean)
-
- (a: TValue, b: TValue): boolean
-
Returns boolean
Returns TValue
A hook to track event and update a state snapshot