         }
     }
 
-    private func onErrorState(error: Error, afterState: PaginationViewModel<C>.State) {
+    private func onErrorState(error: Error, afterState: PaginationViewModel<Cursor>.State) {
         if case .loading = afterState {
             enterPlaceholderState()
 

        }
    }

    private func onResultsState(newItems: [C.Element], inCursor cursor: C, afterState: PaginationViewModel<C>.State) {
        tableView.isUserInteractionEnabled = true

        if case .loading = afterState {
            delegate?.paginationWrapper(wrapper: self, didReload: newItems, usingCursor: cursor)

            currentPlaceholderView?.removeFromSuperview()

            tableView.support.refreshControl?.endRefreshing()


        }
    }

    private func onLoadingMoreState(afterState: PaginationViewModel<Cursor>.State) {
        if case .error = afterState { // user tap retry button in table footer
            tableView.tableFooterView = nil
            addInfiniteScroll()
