This week is the Vue.js Amsterdam conference, and it will be my first time participating. I'm excited to hear great talks and meet people from the community.
👉🏻 This blog post, unravels the intricacies of Vue 3 lifecycle hooks, accompanied by a real-time example that will shed light on their practical application.
👉🏻 By demonstrating a component with search capability, Maya Shavin will walkthrough a step-by-step guide on how to test a component with the preview Playwright's component testing feature.
👉🏻 In this example-driven talk, Eduardo discusses some of the bad practices he has seen in Pinia as well as the good ones that should have been used instead.
🔥 Vue Tip: Don't Use Reactive Object for Template Refs
Template Refs are a way to access elements in the DOM from within a Vue component. As the name suggests, you should use a refref to access the element in the template.
The watcher will log nullnull when the component is first instantiated, but when the component is mounted and the input is created, it will not trigger again. This happens because the input object becomes a new object which breaks reactivity if we use reactivereactive. Read Ref vs. Reactive: What to Choose Using Vue 3 Composition API? to learn more about this topic.
If we use refref instead, it will work as expected because only a refref can be reassigned in this way.
👉🏻 Interaction to Next Paint (INP), which is a holistic approach at measuring responsiveness, will officially become a Core Web Vital on March 12, 2024, replacing First Input Delay (FID).
Weekly Vue News #194 Reactive Time Ago View online Hi 👋 I'm on vacation this week, so no special news from my side — just some fresh Vue & Nuxt content for you! Enjoy this issue and have a lovely week ☀️ Vue 📕 Optimizing heavy operations in Vue with Web Worke...
Hey! In yesterday's email I shared what I think is the key feature to making Vue components highly reusable: Scoped slots. But scoped slots are hard to grasp, and even more difficult to master. So today, we're going to make sure we understand them on a deep, intuitive level. Then, I'm going to introduce you to the magic ✨ of scoped slots. The trick is to think of them as functions. Slots are just functions We're going to recreate the functionality of slots, but we'll use a regular Javascript function that only returns HTML. This is the code we'll replicate: <!-- Parent --> < template > < div class = "modal-container" > < div class = "modal" > Content in the Parent < Child class = "mb-4" v-slot = "{ text }" > ...
评论
发表评论