React Query Tutorial - 6 - Query Cache

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

Use coupon code: CodevolutionYoutube for any workspace upgrade. Select "Add promo code" on checkout, enter the code, then hit "Apply". This will apply a 100% OFF lifetime discount to your subscription. Enjoy and feel free to invite others to your workspace!

📱 Follow Codevolution

React Query Tutorial on Query Cache
Query Cache with React Query
Рекомендации по теме
Комментарии
Автор

What is the advantage of caching if the data is going to be re-fetched and it's going to cause a re-render of the component anyway? Shouldn't there be a way to check if the re-fetched data is the same so we don't need to re-render the component?

exodion
Автор

Best useQuery tutorial BY FAR out there! I have a question! U said that a background refetch is happening after a new mount but if the data is the ssme the page dont change! But it stills rerender right? So if we use memo we prevent rerenderi g?? Ty a lot !

thecutedreamkostasp.
Автор

SIr you are just wow... Thank you so much for such an amazing content for free. love from Pakistan

muhammadjunaid
Автор

There is a problem though..It make a call to API again and hence all the component gets rendered. It causes performance issue.

Kattarhindusanatan
Автор

who use query v-5
const {data, isLoading, isError, error, isFetching} = useQuery({
queryKey:['super-heroes'],
queryFn: fetchSuperHeroes,
gcTime: 5000,
})

ИззатТурсунов
Автор

Super clear and helpful series, you don't know how much I appreciate this, thank you sir

thosan
Автор

Love this series. Hope we will get more awesome series like this. Best of luck. Assalamu alikum

kazinoman
Автор

how it is caching and there is a request in devtools at the start of the video?

hos
Автор

3:05 so this helps rendering times and client side performance of the page – but is not taking any load off the API as it fires the same amount of requests as without react-query, correct?

doubleT
Автор

What about the user interaction with the data ? Like we store it in useState etc and apply some on clicks etc

yashchauhan
Автор

Thanks for nice explanation. Need to one clarification. only the results are cached? and still calls made to the back end rest api. is it comparing the results of the cached ones against the one fetched from the server

ajaykumarreddyk
Автор

Sir thank you so much ❤ for giving such content free..

shivanshuupadhyay
Автор

Amazing series and wonderful explanation

Jai-xqhi
Автор

Hey dude, where did you get the ReactQuery console on thebottom ?

verbient
Автор

Very crisp and clear explanation, Thank you so much from Maharashtra, India🤩

PravinGaikwad-dufq
Автор

Then Is it always better to configure longer cache time ???

jewoo_
Автор

Can the function be an unique identifier? I thought the query key was the unique identifier.

ironyman
Автор

can we cache a gltf file in next js using react-query???

namanrajput
Автор

best one on youtube explained react query

syrian
Автор

please how did you do the empty cash / hard reloading

razac_zr