Reactivity in Vue 3 - How does it work?
Vložit
- čas přidán 27. 07. 2024
- Gregg Pollack uncovers Vue 3 Reactivity. This is the first lesson from a full Reactivity course, available on VueMastery.com.
Ready to master Vue.js? With weekly Vue js tutorials on the latest topics, and exclusive content with Evan You (the creator of Vue), Vue Mastery is the ultimate learning resource for Vue developers to level-up their skills. Watch more free Vuejs tutorials 👉 www.vuemastery.com/courses
Get in touch 👉 team@vuemastery.com
0:00 Vue 3 Reactivity
1:00 A Simple Vue App
2:00 How can we save the total calculation?
3:55 dep
6:07 Multiple reactive objects - Věda a technologie
Years later I still come back to this video, love it
Well explained the 3 main containers and trigger logic in 10 minutes. That's cool !
Thanks for the video. Any chance we can know how templating works ?
there is a mistake! Maps can have objects as keys! In Weakmaps the keys arent strongly held so there can happen GC. There is a great http203 episode about all the weak stuff.
strong guys don't study weak maps
thanks by the way, love the explanation after using vue for some month 😁
Amazing
nice!
Want to watch the next lesson in this course? Head over to 👉 www.vuemastery.com/courses/vue-3-reactivity/proxy-and-reflect
FYI💡 We have an entire library of premium Vue courses for all skill levels filled with detailed explanations just like this one.
Greeeat !
thanks, but where is the next lesson ? it's been a year passed and there isnt any next video yet ! was that just to make me wonder around the playlist and channel ?!
The full course is available here 👉 www.vuemastery.com/courses/vue-3-reactivity/proxy-and-reflect
But how are triggers triggered in vue reactivity?
They're triggered automatically by overriden default object getters and setters behavior, thanks to JavaScript Proxy API.
Each time you call yourVariable.value, then instead of calling default getter => it calls trigger() on your object. That's why in new vue reactivity `.value` is so important. It's directly bound to JavaScript native Proxies
what colour scheme is that please?
Flat UI Dark
🙌👏