Skip to content

Action vs Service for async operation #1871

Answered by Andarist
viglucci asked this question in Q&A
Discussion options

You must be logged in to vote

For async operations its usually better to use services - and it would be better if this example wouldnt use an action for that because this can result in warnings if that promise resolves after the component has been unmounted

Replies: 1 comment 1 reply

Comment options

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

Answer selected by viglucci
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