-
From here: I.e. I am able to do what I want with And on a side note: how one would await for resource outside of view!{}? i.e. before the it: } |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm not sure what you mean. Here's an example I just stuck into one of the <Await
future=get_todos()
let:data
>
<pre>
{match data {
Ok(todos) => format!("{todos:#?}"),
Err(e) => e.to_string()
}}
</pre>
</Await> Works completely fine. What have you tried and what hasn't worked? (Note that it gives you
You don't. Or rather, you can do it inside a |
Beta Was this translation helpful? Give feedback.
-
Thanks for lightning reply! It does indeed. Just injected your code (simplified) into my code and Voilà!
This is what I actually do now. Get resource withing Suspend and then use it in Effect. Thanks again. |
Beta Was this translation helpful? Give feedback.
Thanks for lightning reply!
It does indeed. Just injected your code (simplified) into my code and Voilà!
Not sure what I did wrong before..
This is what I actually do now. Get resource withing Suspend and then use it in Effect.
Thanks again.