mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-10 21:54:10 +01:00
Status detail: Don't cancel the task
This commit is contained in:
parent
f235ebb720
commit
aee6459bcf
@ -81,10 +81,11 @@ public struct StatusDetailView: View {
|
|||||||
proxy.scrollTo(newValue, anchor: .top)
|
proxy.scrollTo(newValue, anchor: .top)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.task {
|
.onAppear {
|
||||||
guard !isLoaded else { return }
|
guard !isLoaded else { return }
|
||||||
viewModel.client = client
|
viewModel.client = client
|
||||||
viewModel.routerPath = routerPath
|
viewModel.routerPath = routerPath
|
||||||
|
Task {
|
||||||
let result = await viewModel.fetch()
|
let result = await viewModel.fetch()
|
||||||
isLoaded = true
|
isLoaded = true
|
||||||
|
|
||||||
@ -98,6 +99,7 @@ public struct StatusDetailView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.refreshable {
|
.refreshable {
|
||||||
Task {
|
Task {
|
||||||
await viewModel.fetch()
|
await viewModel.fetch()
|
||||||
|
Loading…
Reference in New Issue
Block a user