Question · Vue.js course · Module 9: Composables & VueUse
Error Handling in Composables
What is the best way to handle errors in an asynchronous composable?
Answer options
- Ignoring errors
- try/catch with saving the error in a reactive ref
- Using console.log
- Throwing an exception without handling
You can check the correct answer by solving this task in the CodeWorlds game.