mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
use task rather than onAppear for loading initial items
This commit is contained in:
parent
9858cc8413
commit
12c2f8ab62
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ private let enableGrid = UIDevice.isIPad || FeatureFlag.enableGridCardsOnPhone
|
|||
}
|
||||
}
|
||||
}
|
||||
.onAppear { // TODO: use task instead
|
||||
.task {
|
||||
if viewModel.items.isEmpty {
|
||||
loadItems(isRefresh: true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue