Dimillian / Dimillian/IceCubesApp

Bug: repeated re-loading of already loaded posts

Open
#1,266 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
7.1k
Forks
720
PR merge metrics
No merged PRs in 30d

Description

Environment:

  • OS:
    iOS 16.3.1
  • IceCubesApp version:
    1.6.7

Description

I cannnot exactly identify the reason for the bahviour I see, I try to explain:

It seems that the app is reloading the posts from the server when restored from the background. Let's say I am at the top of my Home timeline go down two post to prevent auto-scrolling when new posts come in. I switch to a different app then. When later I return to Icecubes, I see the counter for new posts going up to - just now I tried - 302, but there are only a couple of new posts available. I I slowly scroll up then, the new posts indicator disappears as soon as I have seen the really new posts.

The problem I have is that it seems that lots of already seen posts seem to be loaded again, which would lead to unnecessary traffic, the other thing is that scrolling the home timeline while this is loading makes the scrolling slow and jumpy.

This morning the loading went up into thousands:

Screenshot 2023-03-18 at 09 13 25

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Home timeline behavior on iOS 16.3.1: background the app near the top of the timeline, return to it, and observe the new-post counter and loading. Trace what reloads during restoration; done means already seen posts are not fetched again, the counter reflects genuinely new posts, and scrolling remains smooth.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.