wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.7k stars 1.12k forks source link

I reach the end of the Reader feed #23799

Open dzver opened 2 days ago

dzver commented 2 days ago

Expected behavior

I expect the Reader feed to not end

Actual behavior

It sometimes ends, and when it ends, I can't resume it. Going back and forth doesn't fix it, it doesn't restart when I scroll up

https://github.com/user-attachments/assets/3555bf2b-e001-4bb1-91ce-58520b96fb47

Steps to reproduce the behavior

Scroll until it ends

Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]

iPhone 15 Pro

dangermattic commented 2 days ago

Thanks for reporting! 👍

kean commented 1 day ago

Hey, thanks for the report!

kean commented 1 day ago

RCA – likely one of these criteria:

    private func syncMoreContentIfNeeded(for tableView: UITableView, indexPathForVisibleRow indexPath: IndexPath) {
        let criticalRow = tableView.numberOfRows(inSection: indexPath.section) - loadMoreThreashold
        guard let syncHelper = syncHelper, (indexPath.section == tableView.numberOfSections - 1) && (indexPath.row >= criticalRow) else {
            return
        }
        let shouldLoadMoreItems = syncHelper.hasMoreContent
        && !syncHelper.isSyncing
        && !cleanupAndRefreshAfterScrolling
        && !siteBlockingController.isBlockingPosts
        && !readerPostService.isSilentlyFetchingPosts
        if shouldLoadMoreItems {
            syncHelper.syncMoreContent()
        }
    }

I don't know why it has to be this complicated.