From c361728ae1975f3d306f7971e7a8fe8013421b4c Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Tue, 17 May 2022 19:56:43 -0600 Subject: [PATCH] Avoid cancellation issues in InlineLoadingView --- Twigs/Views/InlineLoadingView.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/Twigs/Views/InlineLoadingView.swift b/Twigs/Views/InlineLoadingView.swift index 7a13298..5440c18 100644 --- a/Twigs/Views/InlineLoadingView.swift +++ b/Twigs/Views/InlineLoadingView.swift @@ -20,9 +20,6 @@ struct InlineLoadingView: 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)