Skip to content

What is the usage for async jobs? #84

Answered by ivanceras
Magicloud asked this question in Q&A
Discussion options

You must be logged in to vote

@Magicloud yes is the current limitation, the Component can not fetch data directly, this is due to the fact that only Cmd can dispatch a msg. The Component can however specify some Effects which can contain information for fetching the data. You will then have to write a code to convert the Effects into a Cmd to do the actual fetching, then the result will be an update to the Component of the Application.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@Magicloud
Comment options

@Magicloud
Comment options

@ivanceras
Comment options

@Magicloud
Comment options

@Magicloud
Comment options

Answer selected by Magicloud
Comment options

You must be logged in to vote
1 reply
@Magicloud
Comment options

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