Vue 3 Watch vs WatchEffect! Watch OUT, youll probably get this wrong! @ProgramWithErik
Vue 3 Watch vs WatchEffect! Watch OUT, youll probably get this wrong!  @ProgramWithErik
Uploaded January 2022 | Updated November 2026, 1 day ago
Vue.js 3 has a watch and watchEffect. But how do you reactively use side-effects with Vue? And which one do you use? In this video I discuss the benefits and the drawbacks of watch and watchEffect with Vue.js 3.

πŸ‘‰Check out my last video on why you don't need css!
youtu.be/9WEV51IGSek

πŸ‘‰ Sign up and get free Vue cheat sheets and updates!
https://www.vuecourse.tech/

Need some mentoring, help with a project, get a career in tech, level up your skills? Check it out
πŸ‘‰mentorcruise.com/mentor/erikhanchett

Need to Learn Vue or Nuxt? Check out my courses below!

bit.ly/2LalQka - Learn Nuxt.js Course!
bit.ly/3aiYe8s - Quick Starter On Vue 3
bit.ly/2OETt0M - Full 6 Module course on vue!

0:00 Introduction
0:36 What is watch and watchEffect?
03:48 #1 watch runs lazily
06:10 #2 more specific trigger
07:35 #3 previous and current values
08:13 other things to Watch out for!

πŸ—‚οΈ πŸ—‚οΈ πŸ—‚οΈ

Links
v3.vuejs.org/api/computed-watch-api.html#watching-a-single-source
gist.github.com/ErikCH/919ab6590509fa658b6695ed2541a631
Vue 3 Watch vs WatchEffect! Watch OUT, youll probably get this wrong!Build A Full Stack Vue Photo Album With Image Editing (Nuxt.js, Cloudinary, API Routes)Create A Super Fast Nuxt.js Server With Vite! Nuxt + Vite Tutorial With Vue.js!Oops! I gave Nuxt permissions to delete filesTypeScript End-to-End: Type Safety Front and Back  #coding #awsMy Favorite And Fastest Way To Deploy Next.js/Vue.js To AWS (Super Easy!)I Used To Vibe Code All My Vue Apps Until I Found ThisTypeScript From End-To-End Changes Everything!Advanced Vue: Create a Crypto Price Tracker Using Web ComponentsIs Astro A Game Changer For Nuxt and Vue Developers?Vue.js Advanced Component Composition PatternsMy Favorite Vue.js Starter Templates That You Should Know
Program With Erik |

Vue 3 Watch vs WatchEffect! Watch OUT, you'll probably get this wrong!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER