Trying to migrate to Swift 6. However getting this error when using SwiftUI StoreKit purchase environment.
Sending main actor-isolated value of type 'PurchaseAction' with later accesses to nonisolated context risks causing data races
@Environment(\.purchase) private var purchase
let result = try await purchase(product)