How can you capture an imutable state within a .run Effect #1758
Replies: 3 comments 3 replies
-
Hi @Dominic263, capturing immutable state in |
Beta Was this translation helpful? Give feedback.
-
Hi Brandon, I think I found a solution to the issue ; this seems to be working but I have a question (below)
where ids is an array of UUID's and updateAnnotations is a Parent action which takes a UUID as one of its argumemts. This is how the updateAnnotations action then returns the effect defined beelow once it receives an id
|
Beta Was this translation helpful? Give feedback.
-
Hi Brandon. It works like a charm! Thanks for the help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks just a quick question ,
How can you capture and use an imutable value in an asynchrounous context using the EffectTask.run effect? I know how to do this using the .task effect
return .run { [state] in
// do something with state in this asynchronous context
}
but how can i do the same thing with .run .
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions