React Query Crash Course - Learn Queries, Mutations, Caching, Optimistic Updates...

preview_player
Показать описание
In this comprehensive tutorial, we dive into the core features of React Query (now known as TanStack React Query) and demonstrate how it simplifies data fetching and state management in your React applications. We delve into advanced topics like caching, data invalidation, and working with mutations to create and update data.

Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

🌟 Gear / Hardware I Use and Recommend 🌟
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Timestamps
00:00 Introduction to React Query
00:06 What is 10Stack React Query?
00:29 Setting Up Your Project
01:03 Installing React Query Library
01:51 Configuring Query Client Provider
03:01 Fetching Data from an API
04:07 Using the useQuery Hook
06:08 Handling Loading and Error States
10:55 Understanding Caching in React Query
14:02 Fetching Data by ID Example
18:29 Introduction to Mutations
20:59 Creating a Post with React Query
24:21 Handling Post Creation Success
28:12 Implementing Optimistic Updates
35:24 Conclusion and Next Steps

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

Thank you for your hard work. Keep it up, it is my great pleasure to study your content.

rustamn
Автор

i love when knowledge i gathered with a lot of time is also advised by pedro. Cheers!

Goku-zurk
Автор

hey pedro, which one to use? Tanstack query or RTK query?

akashpatil-vorr
Автор

Thanks for sharing it. It is really helpful for me.

AungKoMin-qn
Автор

with recent developments in the routers in react ecosystem like react-router and tanstack-router, now having the capability to fetch data, we have to use tanstack-query differently like in the loaders . I feel that part should have been covered from a real project usage pov with either one of the routers

ayushshende
Автор

Thank you for creating such informative educational videos. They've been incredibly helpful for my learning journey. I wanted to request if you could add Russian or Ukrainian audio tracks to your YouTube videos, as this would make them more accessible to viewers from these regions.

natanrock
Автор

since i fetchdata using RTK query should i still learn react query?

IDOGADAN
Автор

Can you make videos where we will use both react query and redux toolkit

saiprakash
Автор

Awesome tutorial. 😊
I would like see some tutorial with nextjs, server components, tanstack query, and axios. If anyone as an example repo of this please do reply. 🙏🏻

rgagankumar
Автор

As traducoes dos titulos tao compliacadas... é proximo js, é consulta tanstack kkk

patolorde
visit shbcf.ru