Question · Vue.js course · Module 4: Computed & Watch

Async in watch callback

Can the watch callback be asynchronous (async)?

Answer options

  • No, only synchronous callbacks
  • Only in watchEffect
  • Yes, but you need to handle cleanup for race conditions
  • Only in Vue 2

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