onFinishWork | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function onFinishWork

    • Register a finish hander for the current work with the specified tag

      Type Parameters

      Parameters

      • handler: T | (() => T)

        Handler to register. If a function is passed, it is called to get the handler. Ignored if a handler is already present

      • Optionaloptions: { uniqueTag?: string | symbol }

        uniqueTag: Unique tag to register the handler with. If a handler is already registered with this tag, it is replaced.

      Returns T

      The newly registerd handler. If uniqueTag is set, the originally registered handler is returned