Question · Vue.js course · Module 11: Pinia

Asynchronous Actions

How do you define an asynchronous action in Pinia?

Answer options

  • Using async/await in the action function
  • Using a special asyncAction() wrapper
  • Asynchronous actions are not possible in Pinia
  • Using the $async modifier

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