@oneblink/apps-react
    Preparing search index...

    Function registerPendingQueueAttachmentProgressListener

    • Register a listener function that will be passed a progress event when an attachment for an item in the pending queue is being processed.

      const listener = async ({ progress }) => {
      // update the UI to reflect the progress here...
      }
      const deregister =
      await submissionService.registerPendingQueueAttachmentProgressListener(
      attachment.id,
      listener,
      )

      // When no longer needed, remember to deregister the listener
      deregister()

      Parameters

      Returns () => void