Reset fetcher state when filter is changed

This commit is contained in:
Jackson Harper
2024-02-06 14:06:21 +08:00
parent 87928a517a
commit ad0bf56aed

View File

@ -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) }