@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;
            priorityFn?: PriorityFn;
            throwError?: boolean;
        }
        • OptionalabortSignal?: AbortSignal

          Signal to abort the requests

        • formsAppId: number

          The id of the OneBlink Forms App to sync drafts with

        • OptionalpriorityFn?: PriorityFn

          Function used to determine the order of the draft downloads. It is expected to return a negative value if the first argument is less than the second argument, zero if they're equal, and a positive value otherwise.

        • OptionalthrowError?: boolean

          true to throw errors while syncing

      Returns Promise<void>