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

Watcher lifecycle

Arrange the watcher lifecycle from creation to stopping:

Items to put in order

  • Create the watcher (watch/watchEffect)
  • Execute the callback on change
  • Call stop() or component unmount
  • Register dependencies and listen for changes

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