You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, what if it's not a force refresh but just a periodic refresh from too old of cache? We should only be persisting the first page of data at that point, too.
Proposal:
Change to...
# InRepositoryprotectedfunneedsARefresh(requirements): Bool {
return!syncStateManager.hasEverFetchedData(tag: requirements.tag) || syncStateManager.isCacheTooOld(tag: requirements.tag, maxAgeOfCache: dataSource.maxAgeOfCache)
}
# In paging repository
if (force ||super.needsARefresh(requirements)) {
...persist only first page...
}
The text was updated successfully, but these errors were encountered:
With paging support, we are handling refresh calls when the user wants to force a refresh.
But, what if it's not a force refresh but just a periodic refresh from too old of cache? We should only be persisting the first page of data at that point, too.
Proposal:
Change to...
The text was updated successfully, but these errors were encountered: