Put in order · Vue.js course · Module 11: Pinia

Async Action Pattern

Arrange the steps of the async action pattern

Items to put in order

  • finally { isLoading.value = false }
  • try { await fetch(...) }
  • catch(e) { error.value = e }
  • isLoading.value = true

You can check the correct answer by solving this task in the CodeWorlds game.