Skip to content

<Await/> with server function. #3434

Answered by rgr-1
rgr-1 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for lightning reply!

It does indeed. Just injected your code (simplified) into my code and Voilà!
Not sure what I did wrong before..

You don't. Or rather, you can do it inside a Suspend::new(async move { ... }), which you then use in the view somewhere.

This is what I actually do now. Get resource withing Suspend and then use it in Effect.

Thanks again.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rgr-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants