React Query Tutorial | #34 React Course

Published: 20 May 2023
on channel: Code with Sloba
1,608
64

In this tutorial, you will learn how to make API requests using React Query, both fetching and mutating the data. and how to make dependant calls.
Then you're gonna learn how you can implement features such as loading and also we are gonna check how to handle errors.
While we are there we are gonna see how re-tries work, and at the end, we will learn how to implement caching and how to invalidate cache and update the data.

Maybe that sounds complicated, but you will love React Query when you see how easy, simple and straightforward it is to implement all of this.

🧿 I discussed:

✔️ How to make get/put requests with React Query
✔️ How to use useQuery and useMutate
✔️ How to make dependent calls
✔️ How to cache data
✔️ How to invalidate data
✔️ How to retries work
✔️ How to handle loading and errors

0:00 Intro
0:43 React Query configuration
1:51 useQuery
3:55 Loading and Error handling
5:30 Building list
6:49 Caching
7:43 Dependent calls
11:14 useMutation
14:00 Cache invalidation
18:03 Outro

************************************************************
Previous Video:    • React Hook Forms | #33 React Course  
Next video:    • How To Do User Authentication in Reac...  
Full series    • Full React Course  
************************************************************

👉 Patreon:
✔️   / codewithsloba  

👉 Become a better developer with 2 minutes a day:
✔️https://codewithsloba.com

👉 Linkedin:
✔️   / slobodan-gajic  

👉 Instagram:
✔️  / codewithsloba  


Watch video React Query Tutorial | #34 React Course online without registration, duration hours minute second in high quality. This video was added by user Code with Sloba 20 May 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,608 once and liked it 64 people.