Replies: 2 comments
-
(More specifically, I see there was a comment that there will be upcoming episodes addressing WWDC topics, so if the answer is "sit tight", that's fine too 😄.) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @kamcma, you are right that we will be addressing this soon. We are playing around with some APIs to demonstrate what is possible, and in fact your idea to implement this as an extension on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I know in some other discussions Brandon and Stephen have said they're exploring how TCA might incorporate the new Swift concurrency features directly, and I look forward to it.
In the meantime, though, I've been pondering if there might be a way to bridge the world of Effects and Actions and some of the new async SwiftUI APIs. I'm thinking in particular of .refreshable(action: @escaping () async -> Void).
Consider the basic case of an action that initiates a network request mapped to an action that receives the response. Is there some way to capture that send-and-receive pair of actions such that we could pass a function of the appropriate async signature to that refreshable(action:) modifier? Perhaps implementable as an extension on ViewStore (I'm not proposing the library itself implement any of these stop-gap bridges). I feel like there's something there but I'm not quite sharp enough to put the pieces together myself.
Appreciate anyone's thoughts. Have a nice day.
Beta Was this translation helpful? Give feedback.
All reactions