mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Reset fetcher state when filter is changed
This commit is contained in:
parent
87928a517a
commit
ad0bf56aed
1 changed files with 5 additions and 0 deletions
|
|
@ -100,6 +100,11 @@ import Views
|
|||
}
|
||||
|
||||
func loadItems(dataService: DataService, filterState: FetcherFilterState, isRefresh: Bool, forceRemote: Bool = false) async {
|
||||
if isRefresh {
|
||||
cursor = nil
|
||||
limit = 5
|
||||
}
|
||||
|
||||
await withTaskGroup(of: Void.self) { group in
|
||||
group.addTask { await self.loadCurrentViewer(dataService: dataService) }
|
||||
group.addTask { await self.loadLabels(dataService: dataService) }
|
||||
|
|
|
|||
Loading…
Reference in a new issue