Re:Vue.js: the good, the meh, and the ugly
by RussianCow on Thursday July 05, 2018 @09:32PM
(#17468290)
I don't think it's bad at all to have an action trigger an API call that doesn't save anything to the store. However, as @mmcnl said in response to your original comment, you probably want to abstract the actual API-related code into its own module, so that you don't implement the API calls in the actions; then your actions become thin functions that simply call that code with the necessary parameters.
[ Parent
| on HN ]
There are no comments on this comment yet.