the defineModel is a great quality of life improvement, i was breaking my neck a bit in some input components not reacting nicely, for some i even rewrote in options API
@DatDat59
7 ай бұрын
Until now I was using useVModel from VueUse
@8ack2Lobby
8 ай бұрын
already upgraded 🥳
@loic.bertrand
8 ай бұрын
10:00 does the return type of defineModel change depending on whether or not you destructure it? 🤔 Also, using the "modifier" variable returned by defineModel in a function that's declared before defineModel is even called is weird x)
@u4yk
7 ай бұрын
The v-bind shortcuts make the upgrade worth it.
@emelendez
8 ай бұрын
As short v-bind I used: … v-bind="{ msg, id, name, title}”…. Now it could be: … :msg :id :name :title
@ProgramWithErik
8 ай бұрын
Yup , very nice
@Vietnamkid1993
8 ай бұрын
What is the alias fileURLToPath(new URL(“./src”, import.meta.url)) do? I normally alias @ to src
@Voltra_
8 ай бұрын
It's a minor version change, so yes
@asefhosseini3007
8 ай бұрын
How to update vue 3.2 to 3.4?
@ethannr1
8 ай бұрын
Short hand v bind is nicee
@ProgramWithErik
8 ай бұрын
A little Svelte like
@nested9301
8 ай бұрын
defineModel is a heavy improvment waiting for vue 4!
@ProgramWithErik
8 ай бұрын
Woot! me 2
@testhike
8 ай бұрын
Hello sir, when we build a vue app i need to be javascript variables and all Object keys and function names should be started with a custom prefix.
@ProgramWithErik
8 ай бұрын
Yes, that is good practice. Like TheButton, that's a part of the Vue style guide, I don't always follow it though
@1haker
7 ай бұрын
i dont see all of your code, 1. its too big, 2. right side is cut
@ProgramWithErik
7 ай бұрын
Thanks’ I’ll fix that next video
@DatDat59
7 ай бұрын
And this theme is confusing 🫤
@ColinRichardson
8 ай бұрын
I wouldn't recommend the props destructure, it doesn't play nicely with optional properties that get assigned later. It's one of those small little things can completely derail you for hours. Because "it looks right" but it "doesn't act right".. It's the same with nested prop values.. I ended up writing my own personal toRef that accepts an optional ref as an input.. So now I can get a ref of a property of a undefined..
@ProgramWithErik
8 ай бұрын
Good to know! Do you have any code that reproduces this? I'll have to test it out
@ziad_jkhan
8 ай бұрын
I guess you can use toRefs(props) for that. You can do it right after defining props in order to make them reactive.
@ColinRichardson
8 ай бұрын
@@ProgramWithErik Hello, I have tried to reply twice to this.. it seems youtube is blocking my messages when trying to send you an example.
@sandorturbucz425
8 ай бұрын
Honestly that very last one with the setter and array destructuring and default and types and all is just too much and too ugly. Defeats the purpose of being quick and elegant and easy to use, especially for an easy task like capitalization. For me these overengineered solutions are a no-go, but Vue 3.4 in general is neat.
@mortenskipperthysen
8 ай бұрын
Nice video but you are jumping around to much in files and your examples are far from clean. To much white noise for my liking
Пікірлер: 32