Question · Vue.js course · Module 4: Computed & Watch
watch vs watchEffect
How does watch differ from watchEffect in the Vue.js Composition API?
Answer options
- watch requires explicitly specifying the source, watchEffect automatically tracks used reactive dependencies
- watchEffect is faster than watch
- watch only works with ref(), watchEffect only with reactive()
- There is no difference, they are aliases
You can check the correct answer by solving this task in the CodeWorlds game.