React Query Tutorial - 10 - useQuery on click

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 using useQuery on click
useQuery on button click
Рекомендации по теме
Комментарии
Автор

I am waiting for this series to finish.. I was waiting for this for a long time. It is really a treasure for me. Thanks bro

muhammedmohsin
Автор

I like your pronounciation and tone. Excellent !!!

ravindranathmopparthy
Автор

This is extremely useful, which I didn’t even notice and been wondering how to do that manually~~~~<<

jacinyan
Автор

Exactly what I was looking for, thanks

eminm
Автор

I am having a problem whenever I open the modal button and close it, the state turns undefined which I think because the component is being re-mounted???. I've found the perfect yet simple solution after watching this video. Thank you mate!

MuhammadAkbar-syzm
Автор

Hi, how can we refetch with different data ?

prashanthpalakurthi
Автор

How it would work if there are two buttons fetching different data from 2 different apis.?

kanishmalviya
Автор

This is not correct in most scenario, as button event fetch means user would have some input & then would press button, abd refetch dont allow us to pass params

neelabhdutta
Автор

Can we also keep cacheTime as 0 in this case? Basically, we have to disable cache since there is a user button click instead of checking if(isLoading || isFetching) return <>Loading..</>

ShamliK-myye
Автор

how we differentiate one query with other as refetch didnt tell us which query to refetch

ibrahimjamil
Автор

please i need help, when i tried the isError, and changed the api endpoint, my app says "reading of map is undefined" i.e from the mapping of the data, i also used the optional chaining like you did, it still didn't work, the error message wasn't returned

wisdomelue
Автор

sir in this new version when i am setting {enabled:false} the isLoading is running to infinite time and the loading... is only seen in the screen .
plz help

AtomiCoding
Автор

If you could just teach by building a full project. I been learning this react course and there are 120 videos.

afrikanking