Dimillian / Dimillian/IceCubesApp
Bug: repeated re-loading of already loaded posts
Nobody has claimed this yet.
- 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:

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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