Click in order · Vue.js course · Module 4: Computed & Watch

Watch with cleanup syntax

Arrange watch with onCleanup in the correct order:

Items to click

  • })
  • watch(source,
  • (newVal, oldVal, onCleanup) => {
  • onCleanup(() => controller.abort())

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