React Query - Full Tutorial 2024 🔥🔥

  Рет қаралды 46,006

RoadsideCoder

RoadsideCoder

Күн бұрын

Пікірлер: 78
@RoadsideCoder
@RoadsideCoder Жыл бұрын
🔴 Get my Complete Frontend Interview Prep course - roadsidecoder.com/course-details 🟪 Tanstack Query Project Tutorial - kzbin.info/www/bejne/eHTTkGiGpLClrKssi=bu8w7PwUZyBO8ndB 👤 Join the RoadsideCoder Community Discord - discord.gg/2ecgDwx5EE
@gjn4323
@gjn4323 10 ай бұрын
We definitely need a project tutorial on this
@RoadsideCoder
@RoadsideCoder 2 ай бұрын
Here u go - kzbin.info/www/bejne/eHTTkGiGpLClrKssi=bu8w7PwUZyBO8ndB
@ghanshyamdobariya8875
@ghanshyamdobariya8875 11 ай бұрын
I bought one course that has react-query tutorials, but your video is far better..
@SureshChidurala
@SureshChidurala 8 ай бұрын
🎯 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
@houriayaseen5487
@houriayaseen5487 11 ай бұрын
I liked the video and now commenting before I even finished it. your explanation is awesome 🔥
@cutebaby_richu22
@cutebaby_richu22 Жыл бұрын
Yes i was waiting for it😍... Finally came🥳
@OCEMTechZone
@OCEMTechZone 5 ай бұрын
Great one Thanks a lot Sir you save my lot of hours to implement steal data 🎉🎉🎉🎉🎉🎉🎉
@chhavimanichoubey9437
@chhavimanichoubey9437 9 ай бұрын
I can say this video covers the essentials, and coders then will read docs to get more familiar with advanced topics of tanstack.
@AdilAnsari-im1ir
@AdilAnsari-im1ir Жыл бұрын
Please make a video with RTK
@AnandakumarMoorthi
@AnandakumarMoorthi 10 ай бұрын
yes please make a complete project by using react query
@samduss4193
@samduss4193 9 ай бұрын
he does not need i think he already provide detail enought
@RoadsideCoder
@RoadsideCoder 2 ай бұрын
Here u go - kzbin.info/www/bejne/eHTTkGiGpLClrKssi=bu8w7PwUZyBO8ndB
@aswathisk5461
@aswathisk5461 Жыл бұрын
Bro just rocked....when I want this...tqsm
@parvezshaikhjr
@parvezshaikhjr 10 ай бұрын
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?!
@Mr___Khan1
@Mr___Khan1 8 ай бұрын
Nice Explanation Sir ♥️
@Rajesh-rg6fw
@Rajesh-rg6fw Жыл бұрын
Can you tell, Rtk query or react query witch one is used most in the industry? and witch one is better?
@himankshu
@himankshu Жыл бұрын
do you use react-query in your production apps? It is better that we are learning but just curious that are companies using it for production apps? I searched jobs on react-query on linkedin but none of them mentioned it in the job description.
@kalideb-y3y
@kalideb-y3y 11 ай бұрын
i don't know the answer though, why this library was created if it's not used on production and only on development? The library's goal is to make users/clients experience better by handling the caching, fetching, etc by it and make web apps more performant
@markoscouse
@markoscouse 11 ай бұрын
It's just a library, companies don't mention stuff like this unless it's something super specific they absolutely require you to know before working there
@marimuthurajendran67
@marimuthurajendran67 11 ай бұрын
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
@PoojaKavlekar
@PoojaKavlekar 8 ай бұрын
Nice explanation, helped alot thanks.
@codeinspector
@codeinspector 3 ай бұрын
Thank you mate
@RavindraSingh-lp9pl
@RavindraSingh-lp9pl Жыл бұрын
waah bhai majaa aagyaaa...one video for RTK React please.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Definetly!
@jagadeshvarmasvpkh7860
@jagadeshvarmasvpkh7860 7 ай бұрын
Need complete project tutorial by using react query.
@wanderar123
@wanderar123 Жыл бұрын
is this still relevent after Nextjs ? (do Nextjs has some inbuilt feature like this)
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Yes
@abhik9077
@abhik9077 8 ай бұрын
yes project tutorial needed...
@RoadsideCoder
@RoadsideCoder 2 ай бұрын
Here u go - kzbin.info/www/bejne/eHTTkGiGpLClrKssi=bu8w7PwUZyBO8ndB
@rubynathanrubynathan2875
@rubynathanrubynathan2875 Жыл бұрын
❤ love it🎉
@shahriar_ferdous
@shahriar_ferdous 11 ай бұрын
Awesome❤️
@warriorwarlord6706
@warriorwarlord6706 11 ай бұрын
Kindly make the complete project tutorial by using react query
@RoadsideCoder
@RoadsideCoder 2 ай бұрын
Here u go - kzbin.info/www/bejne/eHTTkGiGpLClrKssi=bu8w7PwUZyBO8ndB
@mdsafikulislam9113
@mdsafikulislam9113 Жыл бұрын
Which VS Code extension are you using for auto completing?
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Its inbuilt
@mdsafikulislam9113
@mdsafikulislam9113 Жыл бұрын
@@RoadsideCoder Thanks.
@kelvinnwachukwu8141
@kelvinnwachukwu8141 10 ай бұрын
Nice explanation please can you do a full stack app with typescript where such can be used with react queries
@RoadsideCoder
@RoadsideCoder 2 ай бұрын
Here u go - kzbin.info/www/bejne/eHTTkGiGpLClrKssi=bu8w7PwUZyBO8ndB
@jahangirkhan3747
@jahangirkhan3747 Жыл бұрын
Thanks bro ❤
@absiddik7841
@absiddik7841 Жыл бұрын
Yes, make a project tutorial video using react query
@RoadsideCoder
@RoadsideCoder 2 ай бұрын
Here u go - kzbin.info/www/bejne/eHTTkGiGpLClrKssi=bu8w7PwUZyBO8ndB
@deep90402
@deep90402 Жыл бұрын
Please make videos on javascript machine coding rounds will be really helpful
@VeshalRaj-fk4ky
@VeshalRaj-fk4ky Жыл бұрын
do we need axios if we are using react query for fetching and posting some data in the server?
@RoadsideCoder
@RoadsideCoder Жыл бұрын
nope, its optional
@saiharshapingali7577
@saiharshapingali7577 Жыл бұрын
@@RoadsideCoder bro what is the difference between Redux and React Query ?
@sdfsfsfd437
@sdfsfsfd437 Жыл бұрын
¡Awesome video!
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Thanks!
@Lucifer-xt7un
@Lucifer-xt7un Жыл бұрын
​@@RoadsideCoder you said you will be coming with course in 1st week of feb may i know its status please
@svarshithkumar3847
@svarshithkumar3847 3 ай бұрын
Hi piyush Please make a good admin page react project using redux toolkit and react query ❤
@Gymaurcode
@Gymaurcode Жыл бұрын
I wish you upload video on RTK Query
@RoadsideCoder
@RoadsideCoder Жыл бұрын
soon 💖
@j2etech602
@j2etech602 Жыл бұрын
Is it possible to update newly created post to the post list locally without invalidate the post list query? (To reduce API).
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Yes, using setQueryData - onSuccess: (data, variables, context) => { // 👇 We can manually add to posts to avoid api calls queryClient.setQueryData(["posts"], (old) => [data, ...old]); },
@Donchandu_667
@Donchandu_667 Жыл бұрын
Please make video on tanstack router beginner level to advance
@Pareshbpatel
@Pareshbpatel 9 ай бұрын
Nice overview of TanStack React Query V5. Thanks. {2024-04-29}
@hardiknaik7444
@hardiknaik7444 Жыл бұрын
Please make video on framer motion
@krishnaagarwal7934
@krishnaagarwal7934 Жыл бұрын
Can we have videos on typescript
@RajGupta-cu9hi
@RajGupta-cu9hi 11 ай бұрын
In React query 5 how to use onSuccess
@regilearn2138
@regilearn2138 Жыл бұрын
It would be great if use Typescript with this
@RoadsideCoder
@RoadsideCoder 2 ай бұрын
Here u go - kzbin.info/www/bejne/eHTTkGiGpLClrKssi=bu8w7PwUZyBO8ndB
@regilearn2138
@regilearn2138 2 ай бұрын
@@RoadsideCoder Appreciate for this.
@ragucool9468
@ragucool9468 Жыл бұрын
React redux with JWT Authentication - Sign up, Login, Logout & Private Route(access and refresh token redux state management ).how to handle token or session(state management redex store) in enterprice level application ....thanks in advance bro ... eagarly waiting bro..create enterprice level small application ( like ecommerce with cover all topics bro)
@rahul191jain
@rahul191jain Жыл бұрын
How can we use useQuery to call an api on certain action like button click or probably conditionly as usequery is a hook so I am sure we can not or should not use it conditionally. Or I am missing anything here.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Can you give me an example on what type of query u wanna fetch? Because generally you will have a separate component for that which will mount and trigger its own query.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Also, you can use states like the "page" example that i showed you, when page variable changes the query gets triggered
@rahul191jain
@rahul191jain Жыл бұрын
@@RoadsideCoder There are times where we have parent(container) that handles all api calls and take decision after api call response on which page to go to. Yes I understand there can be multiple ways to handle things, but I believe api calls can be called at any point of time. Probably useQuery can return a function that we can call to actually call the api.
@rahul191jain
@rahul191jain Жыл бұрын
@@RoadsideCoder 1 more example can be let's say my first api gives me some data depending on which I need to call other api on same component. I think this is also common use case of get api call
@RoadsideCoder
@RoadsideCoder Жыл бұрын
@@rahul191jain FOr that I mentioned in the end that we have a useQueries hook as well
@itpro-i3o
@itpro-i3o 2 ай бұрын
Complete Proj with RQ plz
@RoadsideCoder
@RoadsideCoder 2 ай бұрын
kzbin.info/www/bejne/eHTTkGiGpLClrKssi=mqXSRDB6cg48mwRA
@vignesha8619
@vignesha8619 Жыл бұрын
pls make to build chatBot using MERN stack
@TheViral_fyp
@TheViral_fyp Жыл бұрын
Bhai live aao this Sunday!!❤
@yourlinuxguy
@yourlinuxguy 9 ай бұрын
Data fetching nhi kind of state management h ye to
@stranger_4803
@stranger_4803 5 ай бұрын
You are a good programmer but not the good teacher
@rishiraj2548
@rishiraj2548 Жыл бұрын
👍🙏
@Crybaby.01
@Crybaby.01 6 ай бұрын
7 : 13 why it is consoling 2 time ?
@ronaldchiagozie8317
@ronaldchiagozie8317 10 ай бұрын
am i the only one with errors?URIError: URI malformed at decodeURIComponent ()
React Form Validations ( with YUP ) - Full Tutorial 2024 🔥🔥
34:14
React Query Tutorial (TanStack Query)
56:56
Anson the Developer
Рет қаралды 6 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 233 М.
React Query - Complete Tutorial
18:57
Cosden Solutions
Рет қаралды 160 М.
React Query Tutorial (2024) - Full TanStack Query Tutorial for Beginners
1:48:26
All useEffect Mistakes Every Junior React Developer Makes
22:23
Learn React Query In 50 Minutes
51:09
Web Dev Simplified
Рет қаралды 323 М.
React Query Is (Still) Essential - My Favorite React Library
11:04
Theo - t3․gg
Рет қаралды 162 М.