Composable Promises & Promises as Components
"Handle your promises with style π
When dealing with asynchronous requests like fetching content through API calls, you may want to display the loading state with a spinner, handle the error and even hide everything until at least 200ms have been elapsed so the user doesn't see a loading spinner flashing when the request takes very little time.
Vue Promised encapsulates everything you need to reduce the boilerplate."
Eduardo San Martin Morote
@posva