How to properly use SwiftUI's .task modifier? #1829
Answered
by
kakhaberikiknadze
kakhaberikiknadze
asked this question in
Q&A
-
So, I've just noticed I'm getting this runtime warning
Well, if I wrap Just wanted to make sure this is a correct implementation for running some background tasks when you navigate to the view. .task {
DispatchQueue.main.async {
viewStore.send(.foo)
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
kakhaberikiknadze
Jan 12, 2023
Replies: 1 comment 8 replies
-
I've noticed I'm getting the same warning when I send the action from
|
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
kakhaberikiknadze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've noticed I'm getting the same warning when I send the action from
refreshable
as well.