Put in order · Vue.js course · Module 4: Computed & Watch
watchEffect lifecycle
Arrange the watchEffect lifecycle from creation to cleanup:
Items to put in order
- When a dependency changes, the callback runs again
- The callback is executed immediately
- On component unmount, the watcher is stopped
- Dependencies are automatically tracked
- Call watchEffect(() => { ... })
You can check the correct answer by solving this task in the CodeWorlds game.