React Hooks Tutorial - 13 - Fetching data with useEffect Part 2

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

📱 Follow Codevolution

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

Thank you very much sir for real contribution

MrBapujinakka
Автор

How do you setState and Array of object? I kept trying but all it does is to use the default value no matter how hard I tried to setstate it

KevinEontrainer
Автор

if i want to fetching an individual post but clicking on the title of the post i want to read for example!?

carlosbecerrarosi
Автор

So when i add id in the dependency list, it still does not render the updated title. Any known issue ?

ishratkaur
Автор

I understand this is to fetch only the necessary data to save bandwidth/data (fetch by ID) but can we do this as well based on text (title or body text)? well, in real world, no one actually searches by ID of posts or products. newbie here

jamesfreeman
Автор

What do I do if I want to add the name of the person who made the post next to the post title. The post has a UserID but the name of the user is in "Users", not in the post. How are you supposed to connect those requests?

Do you have to make a request to users based on each UserID from the post so the right name is connected to the title? I don't know how to do this.

worstenbroodje
Автор

why Property 'title' does not exist on type '{}'. TS2339 error occured ?

shafiqciku
Автор

Hello actually I realized that you don't need to switch [] with {} when you try to apply a variable /id using an input, but also the ts is giving error that title isn't exist in {} type or something like this so I don't know the way you typed it made the vsc through warning, what do you think I tried [] and it worked.

itgiants
Автор

super ... excellent r KT teaches how to code for production proj..

dkaur
Автор

can we write .post() method instead of .get()? Thanks

RiteshKumar-qziq
Автор

when u add post to the dependency array why does it run infinitely?

kevinhuynh
Автор

I figured out, by using async functions we dont have to use axios and we dont have to specify 'data.data', instead 'data' is enough, the reason I dont know why. Can anyone explain the difference between async await fetch and axios and which one is better?

aliasgar.burhani
Автор

How can i get into the post by clicing on it... like a link...

carloscardenas
Автор

how to stop fetch data when id equals 0?

SingleSeeker
visit shbcf.ru