Avoid cancellation issues in InlineLoadingView
This commit is contained in:
parent
04b0bfb4ec
commit
c361728ae1
1 changed files with 0 additions and 3 deletions
|
@ -20,9 +20,6 @@ struct InlineLoadingView<Content, Data>: View where Content: View, Data: Equatab
|
|||
switch self.data {
|
||||
case .empty, .loading:
|
||||
ActivityIndicator(isAnimating: .constant(true), style: .large)
|
||||
.task {
|
||||
await action()
|
||||
}
|
||||
case .error(let error, _):
|
||||
Text(LocalizedStringKey(errorTextLocalizedStringKey))
|
||||
Text(error.localizedDescription)
|
||||
|
|
Loading…
Reference in a new issue