← Fullstack with Vue.jsQuestion 30 of 62
What's the difference between watchEffect and watch(..., { deep: true }) in Vue 3?
📘 Explanation
watch is explicit and gives you old/new values when a specific source changes, while watchEffect automatically tracks whatever reactive data it uses and runs immediately without old/new values. The wrong options swap these behaviors incorrectly or falsely claim the two are identical, which misrepresents how each function actually works.
Related questions
← PreviousNo login needed