-
For example, I could think of two kinds. One, a background pulling from server for some status updates. I think The other is common data fetching. Thanks for the example for that. In the example, I noticed that the fetching "will" be run in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
@Magicloud yes is the current limitation, the Component can not fetch data directly, this is due to the fact that only |
Beta Was this translation helpful? Give feedback.
-
I've just added a new example albeit simplistic for fetching data at the component level. |
Beta Was this translation helpful? Give feedback.
@Magicloud yes is the current limitation, the Component can not fetch data directly, this is due to the fact that only
Cmd
can dispatch amsg
. The Component can however specify someEffects
which can contain information for fetching the data. You will then have to write a code to convert theEffects
into aCmd
to do the actual fetching, then the result will be anupdate
to theComponent
of theApplication
.