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

    Function syncDrafts

    • Force a sync of remote drafts with locally stored drafts. This function will swallow all errors thrown unless true is passed for the throwError property.

      await draftService.syncDrafts({
      throwError: true,
      formsAppId: 1,
      })

      Parameters

      • param0: { abortSignal?: AbortSignal; formsAppId: number; throwError?: boolean }
        • OptionalabortSignal?: AbortSignal

          Signal to abort the requests

        • formsAppId: number

          The id of the OneBlink Forms App to sync drafts with

        • OptionalthrowError?: boolean

          true to throw errors while syncing

      Returns Promise<void>