Hey! I'm working on an advanced Vue.js course! If you'd like to know more, click here -> www.vuecourse.tech/ and sign up! I'll get you a free cheat sheet and I'll let you know when it's out!
From what I understood, which I think you "kind of" mentioned but I don't think you pressed the point home. Watch() allows you to watch Ref A and do something with Ref B and C (but never actually read A). Where as WatchEffects() will only run when Ref B and C changes, not when Ref A does anything. Because you don't read A within the effect.
watch(source, (newValue, oldValue) => { // executed immediately, then again when `source` changes }, { immediate: true }) you can pass the immediate to true if you want it to execute immediatly like watchEffect there is a lot of thing to do the same thing in vue damn
Hi, you seem love to use typescript in your project. So do I. But there's more 3rd party libraries do not have typescript support yet. Such as wowjs. Because of that, I cant use typescript in my project. So javascript without typescript is the safe and stable choice now, right?
It's possible, watch function in composition API is same as its watch counterpart in options API. You can provide those options as third argument to watch function, check official docs for detailed info.
You need to work on your CSS man. Its good content and yes you are focusing on main thing but something looks off and its that ugly style behind. As a frontend guy please spend more time on CSS, you will look better. I am telling you this not on basis of this vid only.
UX/UI is done for purpose, not for the sake of it. This video is to be informative, and majority of the target audience don't really care, they are here for the JS. Now a CSS tutorial on the other hand.....
@@possumkeys I understand what you are saying. I just told him what I felt and its up to him to process my feedback. Majority of the audience may not care but maybe some do or maybe some are unaware that they do.
Also there is very strong aesthetic component in his webcam feed and also in code editor. This perhaps amplifies the insipidness of the page. Unrelated to actual content but its noticeable.
Hey! I'm working on an advanced Vue.js course! If you'd like to know more, click here -> www.vuecourse.tech/ and sign up! I'll get you a free cheat sheet and I'll let you know when it's out!
Is it out yet by any chance?
You just saved the day. I was stuck trying to make a watch works properly, but I was wrong.
Thank you so much!
This is pletty nice. For someone coming from React to Vue, I was wondering how I would implement my useEffect's.
This has got to be it. Thanx.
Glad I could help!
Why are you moving from react?
@@possumkeys I am just broadening my knowledge. I need to master another frontend framework apart from React.
Can you do a video on vitejs SSR with vue 3 and a simple example of data preferching?!
Wow! Congratulations on your new job!
Thank you!!
So `watch` works like the watch option in Vue2 and `watchEffect` kinda works like `computed`, except that it doesn't return anything
Wow, watch() is super useful for what I was trying to do, thanks for explaining it! Vue 3 is pretty awesome
From what I understood, which I think you "kind of" mentioned but I don't think you pressed the point home.
Watch() allows you to watch Ref A and do something with Ref B and C (but never actually read A).
Where as WatchEffects() will only run when Ref B and C changes, not when Ref A does anything. Because you don't read A within the effect.
Thanks, Please more advanced videos and please make video ho to make non reactive copy of ref,reactive, props ....+ vue reactivity explained. Thanks 🙏
watch(source, (newValue, oldValue) => {
// executed immediately, then again when `source` changes
}, { immediate: true })
you can pass the immediate to true if you want it to execute immediatly like watchEffect there is a lot of thing to do the same thing in vue damn
I love watch, i usually use this to grab route changes and send some data to my server.
Why?
@@possumkeys Because it's a middleware.
Awesome tutorial man...
Glad you liked it!
Hi, you seem love to use typescript in your project. So do I. But there's more 3rd party libraries do not have typescript support yet. Such as wowjs. Because of that, I cant use typescript in my project. So javascript without typescript is the safe and stable choice now, right?
Great content 👍 100%
Thank you 🙌
lol i was about to ask about the theme name and you answered it
Watch in Vue 2 you can add immediate: true
Seam not possible anymore.
I would make a function called in the watch and created life cycle
It's possible, watch function in composition API is same as its watch counterpart in options API.
You can provide those options as third argument to watch function, check official docs for detailed info.
Yup, I believe so.
Watcheffect like useEffect in react but better
watch ( () => write.value, ... and watch(write, ... What's are differences ?
Same
maybe they should've just named them like *LazyWatch* and *InitWatch* or something like that
Naming things like react which I find is horribly named.
Good stuff, didn't know about watchEffect yet, seems very svelte'
Hmm
dunno about watchEffect but it sounds like react useEffect..
M-x Forever
You need to work on your CSS man. Its good content and yes you are focusing on main thing but something looks off and its that ugly style behind. As a frontend guy please spend more time on CSS, you will look better. I am telling you this not on basis of this vid only.
You bet!
UX/UI is done for purpose, not for the sake of it. This video is to be informative, and majority of the target audience don't really care, they are here for the JS. Now a CSS tutorial on the other hand.....
@@possumkeys I understand what you are saying. I just told him what I felt and its up to him to process my feedback. Majority of the audience may not care but maybe some do or maybe some are unaware that they do.
Also there is very strong aesthetic component in his webcam feed and also in code editor. This perhaps amplifies the insipidness of the page. Unrelated to actual content but its noticeable.
your videos are good but you take too much time, like these videos can be reduced to 5 min