@leanprover/infoview
    Preparing search index...

    Function useEventResult

    • A piece of React React.useState which returns the data that ev most recently fired with. If f is provided, the data is mapped through f first.

      Type Parameters

      • E
      • K

      Parameters

      • ev: EventEmitter<E, K>

      Returns E | undefined

    • A piece of React React.useState which returns the data that ev most recently fired with. If f is provided, the data is mapped through f first.

      Type Parameters

      • E
      • K
      • T

      Parameters

      • ev: EventEmitter<E, K>
      • f: (newVal: E) => T

      Returns T | undefined