Using asyncData to fetch data from an API with Nuxt

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Ah well, this channel was a blessing to find. I'm excited to grind out these videos.

codybontecou
Автор

Thank you for your nuxt videos i was completely lost, but you walk through it just right - i probably should have gotten at least a minute or two's experience with vue.js first lol...

blu_enjoy
Автор

You’re killing it Debbie! Love the consistency

Can you do a video on Nuxt lifecycle and Full Static feature.

giftegwuenu
Автор

Just discovered your channel today, nice tutorial

thatcoul
Автор

i can't thank you enough for this ! i've been wrecking my head for 3 days trying to come up with my own way to do it ...i didn't even consider checking the documentation lmao ...

ZTF
Автор

Great stuff - would love to see how to do a full blown CRUD example hooked up to a live db - Mongo or Postgresql or whatever - keep em coming, really enjoying them :)

DavePerth
Автор

What if REST API is requesting some headers to access it? For example: session_id? Is it possible to call get() with some custom headers when we are making API call?

pawegrzesik
Автор

Great video. Is it easy to use GraphQL in nuxt? the last I check, the Apollo plugin for nuxt wasn't quite there yet.

xoulrage
Автор

Oh wow. This is so good. Thank you Debbie. I just have one question. You seem two have two Vue tabs in your dev tools @6:16. How does that work?

okhaeadeleye
Автор

Nice video!
Thanks 😊
Would you use this method too to load local json files?

Rxxr
Автор

Facing an issue with AsyncData - it doesn't get called on page refresh or direct link navigation. Any ideas what could be causing this?

iraklishengelia
Автор

is there a way to use skeleton screen while the fetch end?

ia.mtzrmz
Автор

This might be out of scope for doing a video, but can you provide an example using oAuth? I.E., fetching Spotify tracks from a user's playlist?

djmtype
Автор

So asyncData is the ssr way to get data right?

MrAhvids
Автор

What if I need to call more than one APIs? What returns the $get(). It is not a promise?

camotobe
Автор

Nice videos by you 🤠 can you make a deploy nuxt js video

tonydevloptutorial
Автор

Osm content 😍😍, could u please make a video on how to fetch data in Vuex store on server side

AmarjeetKumar-cgde
Автор

Hello Debbie! Awesome content on your channel!
Could you explain the "nuxtServerInit" action for the vuex store?
I've spent too much time trying to make things run but still nothing...

Look at my action inside my movie module:

async nuxtServerInit({ commit }, { $axios }) {
const res = await $axios.$get(

);
await commit("setPopularMovies", res.results);
},

With asyncData all works fine. I would use this way to make my code cleaner.
Please let me know if you can help me! Bye and have a nice day!! ;)

cesarebich
Автор

what is different asyncData & async created?

wahyufebrianto
Автор

i want to learn nuxt... but i need to learn vuex first...

delita