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

  Рет қаралды 10,376

VueConf Toronto

VueConf Toronto

Күн бұрын

Пікірлер: 20
@andredasilva6807
@andredasilva6807 3 ай бұрын
whats the vscode theme? look great
@jored56
@jored56 8 ай бұрын
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 7 ай бұрын
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)
@luatthaivan6449
@luatthaivan6449 Жыл бұрын
is cloning the object will make some performance issues if the object is complex or have function properties ?
@bishowpandey453
@bishowpandey453 6 ай бұрын
Yes
@apglazkov
@apglazkov 5 ай бұрын
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" 🔥🐶🔥
@caiomendes4170
@caiomendes4170 2 ай бұрын
SSX is a good game! I used to play SSX on Tour in my golden years,
@taunado
@taunado Ай бұрын
Epic game, man's got good taste
@tropicaljupiter
@tropicaljupiter 4 ай бұрын
I use reactive like const state = reactive({ thing1: ‘defaultValue’, thing2: -1 )}; In other words, I use it to group state together. Don’t show me 10 lines of individual refs for a small form, just make a reactive formState object.
@MrJloa
@MrJloa 4 ай бұрын
Yep. That's what i do. Always use reactive and make a context like reactive({ posts:[], pageId:1 }) U can now easily reassign posts, also u can pass around the reactive context and u don't have those zillions of refs defined and that crappy ".value" which just looks ugly af.😂
@dannjohnrem
@dannjohnrem 5 ай бұрын
Wow, you’re amazing! How can I be as incredible as you?
@Figurum
@Figurum 7 ай бұрын
awesome🎉
@MrJloa
@MrJloa 4 ай бұрын
Just to point out. The most ugly thing done bad in vue3 is refs which reference the dom. I got no idea why evan made it so bad, whereas the perfect solution was so obvious -- just introduce $ref() for dom refs. Why? const foo = ref(null). What is foo at runtime? A number? Boolean? Collection? U never know. U need to check the template part to be sure. And if that's a dom element, u now can't use the name 'foo' coz it's reserved coz of the ref name. Looks like bs. A proper implementation would be: const notFoo = $ref('foo') const foo = ref(1) Now i see that notFoo is a dom reference, which references a ref=foo element, moreover that attribute doesn't pollute my code (doesn't restrict me from naming smth foo in my code) It seems like evan was drunk while he was implementing dom refs in vue3
@MrJloa
@MrJloa 4 ай бұрын
It gets even worse when u review a lot of code on the browser (gitlab/github). This really pisses me off. We even made conventions addressing this annoying vue3 thing. Btw vue2 had a much better implementation
@najlepszyinformatyk1661
@najlepszyinformatyk1661 Жыл бұрын
Totall basics. nothing interesting
@someoneelse5005
@someoneelse5005 Жыл бұрын
I have no idea what you would expect from common mistakes in a video, they are common for a reason
@baraa7869
@baraa7869 11 ай бұрын
@@someoneelse5005 true af 🤣
Uncovering Nuxt's Hidden Gems - Adam Jahr
30:10
VueConf Toronto
Рет қаралды 1,2 М.
5 Patterns for Better Components in Vue.js - Michael Thiessen
29:08
VueConf Toronto
Рет қаралды 8 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Common Mistakes in Vue.js and How to Avoid Them | VueConf US 2024
25:16
Organizing Code by Logical Concern in Vue 3  by Alex Vipond
24:36
VueConf Toronto
Рет қаралды 10 М.
A Better Way To Organize Components In Vue
10:10
Program With Erik
Рет қаралды 25 М.
Vitest or Cypress? Why not both?! Tools and Practices for Good Tests
47:00
Patterns for Large Scale Vue.js Applications - VueConf US 2023
18:54
7 Vue Patterns That You Should Be Using More Often
14:05
Lachlan Miller
Рет қаралды 34 М.
Organize your Composition API code (2k subscriber special)
18:22
Alexander Lichter
Рет қаралды 26 М.
Conquering forms in Vue - Justin Schroeder
32:40
VueConf Toronto
Рет қаралды 1 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН