Common Mistakes in Vue js and How to Avoid Them - Daniel Kelly

  Рет қаралды 4,691

VueConf Toronto

VueConf Toronto

8 ай бұрын

Building apps with Vue is a delight, but there are some common gotchas you should look out for! In this talk, let’s take a look at some common mistakes that lead to bugs, wasted time, and frustration for Vue.js developers. Topics include: - the v-for key attribute, - replacing reactive state the wrong way - failing to clean up event listeners - watching arrays the wrong way - Unintentionally mutating props - Deconstructing reactive objects - Using composables in the wrong place - and more! Many of these mistakes you’ve probably been guilty of yourself (I know I have!). Learn strategies for avoiding the same mistake twice. If you’re lucky enough not to have made some of these, definitely learn from my own mistakes and the mistakes of others from the community.

Пікірлер: 12
@dannjohnrem
@dannjohnrem 15 күн бұрын
Wow, you’re amazing! How can I be as incredible as you?
@luatthaivan6449
@luatthaivan6449 8 ай бұрын
is cloning the object will make some performance issues if the object is complex or have function properties ?
@bishowpandey453
@bishowpandey453 Ай бұрын
Yes
@Figurum
@Figurum 2 ай бұрын
awesome🎉
@apglazkov
@apglazkov 14 күн бұрын
20:37 - "Hydration mismatch" - even in a single file tutorial example 😅 If a developer can make a mistake so easily, it means there is something wrong with the platform itself. Meanwhile, Vue.js developers still can't stop smiling in all their videos, feigning happiness 😂 "This is fine" 🔥🐶🔥
@jored56
@jored56 3 ай бұрын
In that last mutating props example, wouldn't _data be initialized only once, so once u pass that object up to the parent (and the parent doesn't clone it), you'll end up still mutating the same object? 23:59
@praveshishere
@praveshishere 2 ай бұрын
yes, _data would only be initialized once and in order to overcome that you would have to watch data prop and update _data correspondingly (which would also result in either losing all the changes child component made or patching those changes on the new data received from parent based on your design), when we emit _data to parent, if the parent has used a ref, it would be easily updated no issues with that, though I am not sure what would happen in case if was created using reactive (since I only use refs)
@najlepszyinformatyk1661
@najlepszyinformatyk1661 7 ай бұрын
Totall basics. nothing interesting
@someoneelse5005
@someoneelse5005 6 ай бұрын
I have no idea what you would expect from common mistakes in a video, they are common for a reason
@baraa7869
@baraa7869 6 ай бұрын
@@someoneelse5005 true af 🤣
Uncovering Nuxt's Hidden Gems - Adam Jahr
30:10
VueConf Toronto
Рет қаралды 898
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 18 МЛН
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 14 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 42 МЛН
Is your function REALLY a Vue composable?
10:53
Alexander Lichter
Рет қаралды 10 М.
Patterns for Large Scale Vue.js Applications - VueConf US 2023
18:54
Organizing Code by Logical Concern in Vue 3  by Alex Vipond
24:36
VueConf Toronto
Рет қаралды 9 М.
This is a great Vue interview challenge for junior developers
21:31
John Komarnicki
Рет қаралды 4,8 М.
Webwright #4 | The Web in the Shell
9:19
MittaAI TV
Рет қаралды 22
Conquering forms in Vue - Justin Schroeder
32:40
VueConf Toronto
Рет қаралды 976
Two Ways to Write Cleaner Components
4:40
LearnVue
Рет қаралды 28 М.
5 Patterns for Better Components in Vue.js - Michael Thiessen
29:08
VueConf Toronto
Рет қаралды 5 М.
Nuxt's runtimeConfig - The most common mistake
7:42
Alexander Lichter
Рет қаралды 6 М.
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 9 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 1,4 МЛН
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
Вэйми
Рет қаралды 1,3 МЛН