Here is what I would say is a much more appropriate fix for this issue—create the weak reference yourself:
.refreshable { [weak viewModel] in
await viewModel?.doNotThing()
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: