updateSyncErrorsIfNeeded = (
          nextSyncErrors: ?Object,
          nextError: ?any,
          lastSyncErrors: ?Object
        ): void => {