Function useEventRaised

  • A hook to track event and update a state snapshot

    Type Parameters

    • TEventSource extends IEventSource

    • TValue

    Parameters

    • eventName: string | string[]
    • node: TEventSource
    • query: ((n: TEventSource) => TValue)
        • (n: TEventSource): TValue
        • Parameters

          • n: TEventSource

          Returns TValue

    • Optional deps: DependencyList
    • Optional isEqual: ((a: TValue, b: TValue) => boolean)
        • (a: TValue, b: TValue): boolean
        • Parameters

          • a: TValue
          • b: TValue

          Returns boolean

    Returns TValue

Generated using TypeDoc