How to Fetch Data with Vue 3 Suspense, Fallbacks & Error Boundary

  Рет қаралды 28,027

Modus Create, LLC

Modus Create, LLC

Күн бұрын

Пікірлер: 70
@MichaelTintiuc
@MichaelTintiuc 4 жыл бұрын
Great job explaining a difficult topic. Loved the use of a hand allegory :D
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
That's a relief, thank you, Michael. To be honest, I was afraid if it'd work. Suspense is one of those under-documented topics full of gotchas. Finding a way to describe it in a few minutes was tantalizing. I'm glad you liked it.
@Moduscreate
@Moduscreate 4 жыл бұрын
Glad you liked it, Michael!
@clustersnake
@clustersnake 4 жыл бұрын
I'm Venezuelan and I'm trying to improve my knowledge any way I can and this whole set of videos is just mind blowing! your english is so easy to understand! Thank you very much!
@Moduscreate
@Moduscreate 4 жыл бұрын
Thank you for watching!
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
Thank you for your feedback Eloy! I'm glad you like the videos. Cheers to Venezuela!
@GergiH
@GergiH 3 жыл бұрын
Finnaly a video which shows properly how to fetch and present data with Vue 3. I was pulling my hair out for a day straight because I couldn't figure out how to pass values to the template with "this" in setup() and "data: () => { ... }", which didn't work. I needed "ref" and simply return those values from the setup().
@solvedfyi
@solvedfyi 4 жыл бұрын
Your pace is on point bruv. Your "explaining Vue 3 to 6 year old 2nd graders" approach gets me every time
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
I really appreciate that feedback, bro 😉🙌🚀
@azbroo3748
@azbroo3748 3 жыл бұрын
You are genius... I came here searching of one other problem but I watched whole video and Subscribed.
@StellarStoic
@StellarStoic 11 ай бұрын
I liked how you explained the finger loading 😀
@johnm8358
@johnm8358 4 жыл бұрын
just found this channel... you have a great teaching style!
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
I appreciate that very much! Thanks for watching :)
@user-gnwolmgkqpcn15829
@user-gnwolmgkqpcn15829 2 жыл бұрын
thank you for sharing your passion for vuejs!!
@angelcabrera4560
@angelcabrera4560 4 жыл бұрын
Simply brutal! Absolutely awesome😱
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
Thank you for all the love and support for this channel, Angel! It's great to be a part of a community with fantastic people like yourself 🙌
@i3looi2
@i3looi2 3 жыл бұрын
Suspense seems like a lot of trouble , to achieve stuff I manually achieve. I get it: it's nice to be standardize something it's commonly used in Vue components, but seems a lot of trouble to properly implement it and an even lot more problems to debug it. I usually have cases with nested "suspenses" cases. However, nicely explained. And keep the "issues" on video, so people also understand what might go wrong and relate.
@porkchop2k
@porkchop2k 4 жыл бұрын
Great analogy. Made it very clear. Keep up the amazing work on the videos.
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
I appreciate the good vibes 🙌
@mclotos
@mclotos 4 жыл бұрын
WOW! This solution will significantly save time and amount of code!
@tbloom5328
@tbloom5328 3 жыл бұрын
Just amazing content right here, and it just doesn't stop with this video, all of your videos. Thanks! Something that is lacking, not on your playlist specifically just in general, is a video that covers Typescript & Vue 3 beyond the "hello world" examples. How to declare a interface for a api endpoint, how to set custom interface as an object/array to a prop ect... Those kind of more "realistic scenarios". I say this here because I believe you could do it in a superb way 🙂. If you have one that is paid(?) please let me know! Again, thanks for your time making the videos, saved me a lot of reading.
@aram5642
@aram5642 3 жыл бұрын
Great tutorial. Big shout out for dealing with errors - which is not something that every tutorial cares about. Which also brings me to a question - would you record a video on unit tests. I am a newbie to Vue, so I can only guess there is some testing library for that. I would appreciate a walkthrough anyway :) Thank you.
@yakut54
@yakut54 Жыл бұрын
Спасибо за науку, мужик! Какой плагин используешь для разворачивания vue компонента на 5.42?
@jerwinmathewaton6286
@jerwinmathewaton6286 2 жыл бұрын
great explanation
@armanuddinghazi2039
@armanuddinghazi2039 10 ай бұрын
Amazing 👍🙌
@iOfSauron
@iOfSauron 3 жыл бұрын
These vids are great! Thanks so much.
@ngenohillary266
@ngenohillary266 4 жыл бұрын
Great explanation :)
@slunkeh
@slunkeh 3 жыл бұрын
Fantastic explanation!
@hipertracker8349
@hipertracker8349 Жыл бұрын
Can you handel Error Boundary for a. nested component having a template error? I use a dynamic nested component and its template is built from the the string passed as props. This string may be invalid.
@furkanulutas
@furkanulutas 3 жыл бұрын
Great! thanks.
@sapyati
@sapyati 3 жыл бұрын
Great job
@frontendtutorials7821
@frontendtutorials7821 Жыл бұрын
amazing
@AbbasZaidi-in
@AbbasZaidi-in 3 жыл бұрын
simply love u .
@NickEdgington
@NickEdgington 3 жыл бұрын
I had an issue in that users was not exported correctly. I need to add it to the data block
@Irnovi27
@Irnovi27 3 жыл бұрын
Cool. It's been almost 1 year, why have I just watched this.
@matiasgouiffes1954
@matiasgouiffes1954 4 жыл бұрын
Could anybody tell me how this is better than showing loading states and errors without suspense? I just can't see it
@junaidjahan6864
@junaidjahan6864 Жыл бұрын
Perfect
@bhaidar
@bhaidar 4 жыл бұрын
Hey! What if the component needs to load a single user by ID. The ID is a prop to the component. Would Suspense still work here? Thanks
@aicaramba1988
@aicaramba1988 4 жыл бұрын
yeah it will as long as it is an asynchronous component e.g. async setup()
@merdanozdogan5296
@merdanozdogan5296 4 жыл бұрын
Thank u 🙏
@gamerx1133
@gamerx1133 4 жыл бұрын
How to upload file in vue using flash APIs?
@GintsPolis
@GintsPolis 4 жыл бұрын
Should suspense also work for store.dispatch?
@GintsPolis
@GintsPolis 4 жыл бұрын
Yes. It did work. Only question now, how to use same at refresh :)
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
Yes sir, as long as the action returns a promise (e.g. await).
@gosnooky
@gosnooky 4 жыл бұрын
Like your videos, man. Where are you from? I can't place the accent.
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
Why, thank you 😊 I'm from Croatia. Does that help place it? ☺️
@gonzoartemis2503
@gonzoartemis2503 3 жыл бұрын
I also struggled to get to know that. I've assumed that Grgur might be an american of Andorran 🇦🇩 origins.
@memesnotmine892
@memesnotmine892 4 жыл бұрын
Hi sir, I have a problem using async on setup(). The template does not render even if I use suspense boundary. And every time I click on new route(link) it gives me this "Cannot read property 'parentNode' of null" error.
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
Hard to say why. Do you have a repo you could share?
@memesnotmine892
@memesnotmine892 4 жыл бұрын
@@grgurgrisogono656 github.com/aljohn-ma/vue-suspense here sir. Can I router-view inside a suspense boundary?
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
@@memesnotmine892 You can but there's a catch. Due to recent changes in Suspense, you can no longer do this The way to do wrap router in Suspense is similar to how transitions are done:
@memesnotmine892
@memesnotmine892 4 жыл бұрын
@@grgurgrisogono656 Thank you sir. This is a big help. Been stucked with this problem for almost a day. I hope more tutorials will come from you. I enjoy watching all of it.
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
@@memesnotmine892 Thank you so much for supporting our work :)
@heyyy4987
@heyyy4987 4 жыл бұрын
nice.. enjoing
@Moduscreate
@Moduscreate 4 жыл бұрын
Glad you're enjoying this content. Thank you for sharing! 🙌
@Tarabass
@Tarabass Жыл бұрын
I just hate the auto import lol. Also in Nuxt. I think we have more overview on wat is coming from where if you just add an import yourself. And most IDE's will add the import statement for you as you use a not imported instance. Oh, and creating a custom component with the name "Suspense" will overwrite the vue component. So be aware of that.
@kid_rz
@kid_rz 4 жыл бұрын
10:54 Mind-blowing
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
Vue 3 is very impressive, isn't it!
@kid_rz
@kid_rz 4 жыл бұрын
@@grgurgrisogono656 make more vid pls. ♥️
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
@@kid_rz More coming your way :) Thank you for your support!
@baseerx
@baseerx 4 жыл бұрын
Sir please all the code on github we want to have the code..you have explained vue 3 in a way more beautiful way..please upload the code github and let me know
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
Thanks for all the love Baseer! Take a look at this repo: github.com/moduslabs/vue3-suspense
@baseerx
@baseerx 4 жыл бұрын
Sir,below link keeps whole 9 videos code or just it has suspense section code? I need whole!
@rajikkali2381
@rajikkali2381 2 жыл бұрын
Vue3 auto-imports suspense, but not ref and reactive which you use constantly. It's things like this that make me stick with the Options API.
@atilacamurca
@atilacamurca 4 жыл бұрын
You can simplify the offline testing by emulating it with Chrome. developers.google.com/web/tools/chrome-devtools/network/reference#offline
@grgurgrisogono656
@grgurgrisogono656 4 жыл бұрын
True that, but I wouldn't be able to download the app from the local server, either. This way I enabled the internal communication and disabled internet. Also, it was fun 🤓
@johnstorm589
@johnstorm589 2 жыл бұрын
The starting example gets a thumbs down from me
@ward7576
@ward7576 Жыл бұрын
Good content, but that's the worst analogy I've heard xD
@elmenikmati
@elmenikmati Жыл бұрын
The worst explanation
How to Lazy Load Components in Vue 3 With Suspense
10:57
Modus Create, LLC
Рет қаралды 16 М.
How to use the Vue 3 Composition API - Beginner VueJS 3 Tutorial
17:04
Modus Create, LLC
Рет қаралды 14 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 269 #shorts
00:26
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 16 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 227 МЛН
5 Ways to Fetch Data from an API in Vue 3 Composition API
6:28
Justin Brooks
Рет қаралды 75 М.
Vue 3 Hooks and Type Safety with TypeScript
21:04
Modus Create, LLC
Рет қаралды 9 М.
Vue.js Tips: Use Slots The Right Way // VUE.JS SLOTS TUTORIAL WITH VUE 3
11:59
Вся суть работы с внешним API на Vue | Просто объясняю Vue 3
15:24
Lectoria. Обучение веб-разработке.
Рет қаралды 18 М.
Vue.js Advanced Data Provider Component Patterns Explained
14:07
Program With Erik
Рет қаралды 23 М.
Vue 3 & A First Look at the Composition API
44:41
Academind
Рет қаралды 95 М.
JavaScript Framework Tier List
40:57
Theo - t3․gg
Рет қаралды 358 М.
Understanding Vue 3's "expose"
7:50
Vue Mastery
Рет қаралды 20 М.
Vue 3: Reactivity Made Easy (ref, reactive, toRefs... oh my!)
13:04
Program With Erik
Рет қаралды 49 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 269 #shorts
00:26