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

Order of stopping watchers

Arrange the stages of stopping a watcher and cleaning up resources:

Items to put in order

  • The watcher runs and reacts to changes
  • Call stop() or component unmount
  • const stop = watch(source, callback)
  • The watcher stops reacting to changes

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