React Query - Full Tutorial 2024 🔥🔥

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

How to use React query v5 or Tanstack Query v5 to fetch and manipulate data. React Query makes fetching, caching, synchronizing and updating server state in your web applications a breeze. This tutorial is beginner friendly.

➡️ Source Code -

🔗 React JS Interview Series -

🔗 JS Interview Series -

🔗 Cars24 Interview Experience -

🔗 Unacademy Interview Experience -

🔗 Tazorpay Interview Experience -

🔗 MERN Stack Tutorial with Redux -

🔗 React Beginner's Project Tutorials -

#Javascript #reactjstutorial #ReactJS

-------------------------------------------------------------------------

00:00 Intro
00:26 Setup New React App
01:34 Setup React Query
04:38 useQuery Hook
07:45 What we will build
08:53 useQuery Hook Continued
12:42 React Query Devtools
14:09 useMutation Hook
22:40 Query Invalidation
26:13 useMutation Continued
28:18 Data Caching in React Query
31:58 Pagination
38:00 Infinite Scrolling
38:52 Next Steps

-------------------------------------------------------------------------

⭐ Support the channel -

Special Thanks to our members -
Рекомендации по теме
Комментарии
Автор

Great one Thanks a lot Sir you save my lot of hours to implement steal data 🎉🎉🎉🎉🎉🎉🎉

OCEMTechZone
Автор

Need complete project tutorial by using react query.

jagadeshvarmasvpkh
Автор

🎯 Key points for quick navigation:

00:00 *🚀 Overview of React Query*
- React Query is an asynchronous state management library for TypeScript and JavaScript apps
- Key features include caching, refetching, pagination, and more.
01:48 *📦 Setting Up React Query*
- Installation of React Query and Json Server for mock APIs
- Creating mock APIs using Json Server for testing React Query functionality.
04:02 *🛠️ Configuring React Query*
- Configuring the query client and provider in React app
- Setting up the initial structure to start using React Query for data fetching.
04:43 *🔄 Data Fetching with React Query*
- Demonstration of using the `useQuery` hook to fetch data
- Features like data, loading status, and error handling provided by React Query out of the box.
07:51 *🔗 React Query Dev Tools*
- Introduction to React Query Dev Tools for monitoring data states
- Utilizing Dev Tools for debugging and monitoring data fetching in React Query.
14:16 *📤 Mutating Data with React Query*
- Explanation of how to use mutations in React Query for sending POST requests
- Demonstrating the `useMutation` hook and handling data updates through mutations.
21:51 *🔒 Caching feature of React Query*
- Explanation of how caching works in React Query
- Invalidation of data to trigger refetch
- Functions like on success and on mutate for handling cache invalidation
23:11 *🔄 Invalidation of queries on success*
- Using on success function to invalidate queries
- Accessing the Query Client API for cache management
- Configuring exact option to invalidate specific queries
26:19 *🚦 Handling mutations with React Query*
- Exploring functions like on mutate, on error, and on settled
- Implementing UI changes based on mutation state
- Resetting errors to manage application state
29:24 *🔄 Managing data freshness and staleness*
- Explanation of stale, fresh, and cache concepts in React Query
- Configuring stale time and GC time for data management
- Demonstrating the impact of stale and fresh data on API requests
32:06 *📄 Implementing pagination with React Query*
- Setting up pagination buttons in the UI
- Updating the page state for fetching specific pages
- Managing data caching and automatic query invalidation for pagination

Made with HARPA AI

SureshChidurala
Автор

I can say this video covers the essentials, and coders then will read docs to get more familiar with advanced topics of tanstack.

chhavimanichoubey
Автор

There is a lot of discussion whether to use any state management library like Redux, Zustand, etc or not when we are using React query. My question would be can we use React query as store management library also?!

parvezshaikhjr
Автор

We definitely need a project tutorial on this

gjn
Автор

I bought one course that has react-query tutorials, but your video is far better..

ghanshyamdobariya
Автор

yes please make a complete project by using react query

AnandakumarMoorthi
Автор

I liked the video and now commenting before I even finished it. your explanation is awesome 🔥

houriayaseen
Автор

Can you tell, Rtk query or react query witch one is used most in the industry? and witch one is better?

Rajesh-rgfw
Автор

Hi Thank you for this wonderful tutorial,
The main thing is getting access the data in different component, could you please explain how we can acheive it

marimuthurajendran
Автор

Nice overview of TanStack React Query V5. Thanks.

{2024-04-29}

Pareshbpatel
Автор

Nice explanation, helped alot thanks.

PoojaKavlekar
Автор

Nice explanation please can you do a full stack app with typescript where such can be used with react queries

kelvinnwachukwu
Автор

Yes i was waiting for it😍... Finally came🥳

cutebaby_richu
Автор

Yes, make a project tutorial video using react query

absiddik
Автор

very bad explanation after half video, unable to understand anything

ZahoorMohammed-hhcz
Автор

Bro just rocked....when I want this...tqsm

aswathisk
Автор

is this still relevent after Nextjs ? (do Nextjs has some inbuilt feature like this)

wanderar
Автор

Kindly make the complete project tutorial by using react query

warriorwarlord