     private var currentPlaceholderViewTopConstraint: NSLayoutConstraint?
 
     private let applicationCurrentyActive = Variable<Bool>(true)
-
-    private var waitingOperations: [() -> Void] = []
 
     /// Initializer with table view, placeholders container view, cusor and delegate parameters.
     ///

                self?.applicationCurrentyActive.value = true
            })
            .addDisposableTo(disposeBag)

        applicationCurrentyActive.asDriver()
            .drive(onNext: { [weak self] appActive in
                if appActive {
                    self?.waitingOperations.forEach { $0() }
                    self?.waitingOperations = []
                }
            })
            .addDisposableTo(disposeBag)
    }

}

    }

    private func bindViewModelStates() {
        paginationViewModel.state.flatMapLatest { [applicationCurrentyActive] state in
            return applicationCurrentyActive
                .asDriver()
                .filter { $0 }
                .map { _ in state }
        }
        .drive(onNext: { [weak self] state in
            switch state {
            case .initial:
                self?.onInitialState()
            case .loading(let after):
                self?.onLoadingState(afterState: after)
            case .loadingMore(let after):
                self?.onLoadingMoreState(afterState: after)
            case .results(let newItems, let cursor, let after):
                self?.onResultsState(newItems: newItems, inCursor: cursor, afterState: after)
            case .error(let error, let after):
                self?.onErrorState(error: error, afterState: after)
            case .empty:
                self?.onEmptyState()
            case .exhausted:
                self?.onExhaustedState()
            }
        })
        .addDisposableTo(disposeBag)
