Why doesn't demo codes use function generators on async actions #2295
-
Hi, As stated in mst documentation using function generators, Why doesn't demo codes use function generators on async actions? Am I missing something? I've tried to search through pull requests but no luck. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For a long time I didn't really agree with the documentation and felt like |
Beta Was this translation helpful? Give feedback.
For a long time I didn't really agree with the documentation and felt like
async
was better, so most of the docs / examples I'd write would use async. However, after running into some issues withasync
this year, I've since come around and do think thatyield
/flow
is indeed better. So we should align the examples with that recommendation. Good catch @osrl.