React Query - Complete Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น •

  • @cosdensolutions
    @cosdensolutions  8 หลายเดือนก่อน +7

    Hope you enjoyed the video! I also have a really cool and unique course that will teach you way more than this video. You'll learn how to build an actual complex project with React. It's called "Project React" and you can find it at cosden.solutions/project-react. Also, I have a free weekly newsletter called "Import React" with tutorials, news, and cool stuff about React! You can sign up at cosden.solutions/newsletter?s=ytc

  • @akashddeepchitransh4537
    @akashddeepchitransh4537 8 หลายเดือนก่อน +11

    Before I found your channel I used to find the longest video to learn something, but now I search for your videos, it really saves my time alot.

  • @morchellemusic2829
    @morchellemusic2829 11 หลายเดือนก่อน +23

    I wish all the tutorials were like this, straight to the point! Sometimes you gotta watch 1 hour for 20 minutes of information. Great work, just subscribed!

    • @cosdensolutions
      @cosdensolutions  11 หลายเดือนก่อน +1

      yeah, that's my goal!

  • @SuperYoda7
    @SuperYoda7 8 หลายเดือนก่อน +1

    you explain it in such a clear and simple yet concise way that even I understand it perfectly. please do something on trpc if you haven't already.

  • @rameezh88
    @rameezh88 10 หลายเดือนก่อน +11

    I've watched a couple of your videos. Always to the point and exactly the knowledge I need to understand, feel confident, and get started. Thank you!

  • @lateefmushtaq6059
    @lateefmushtaq6059 หลายเดือนก่อน

    I have learnt 80% of the react /ts from your videos, but i find this video very informative in just 18 minutes making this video a bit complicated.

  • @Pareshbpatel
    @Pareshbpatel 7 หลายเดือนก่อน

    React Query, so clearly explained. Thank you.
    {2024-04-14}, {2024-06-03}

  • @MagedMegz95
    @MagedMegz95 5 หลายเดือนก่อน +3

    I recently discovered your channel, and I cannot state enough how much I like your approach. No BS, just straight to the point with the information that's both useful and practical.
    Love it!

  • @chhavimanichoubey9437
    @chhavimanichoubey9437 2 หลายเดือนก่อน

    you are simply amazing, subscribed, not to mention i want to highly emphasize on reading docs, they mention each feature properly, so if someone have issues, kindly check docs, it almost always helps.

  • @_tanzil_
    @_tanzil_ ปีที่แล้ว +2

    Nice and concise. No nonsense and unnecessary lingering. 👍
    SUBSCRIBED

  • @imamdroubi6537
    @imamdroubi6537 10 หลายเดือนก่อน

    There are videos that you feel guilty if you didn't leave a comment on them thanking the creator , this is one of them
    Thanks a lot man

    • @cosdensolutions
      @cosdensolutions  10 หลายเดือนก่อน

      thank you for the kind words!

  • @ammaraateeb1914
    @ammaraateeb1914 ปีที่แล้ว +9

    Concise, pointed and fundamental information. Done better than the rest.
    *subscribed* to support hard working creative individuals

  • @shahzaibkhan5423
    @shahzaibkhan5423 2 หลายเดือนก่อน

    Amazing ! Everything about React Query in just one video. Thank you very much sir

  • @fabryscript
    @fabryscript ปีที่แล้ว +4

    Thanks a lot for the informative video, straight to the point and without excessive clutter!

  • @gaganyt7861
    @gaganyt7861 ปีที่แล้ว +1

    This tutorial of react query is king of all tutorials in the youtube more concise and excellent explanation, i think even chatgpt cant explain this much concisely Subscribed and love to eatch evey video of yours

  • @SonuKumarTech
    @SonuKumarTech 10 หลายเดือนก่อน +1

    I am becoming a fan of your teaching style. First i watched your redux video and now i am not watching any other redux tutorial. because that video is so straightforward and to the point. please keep on adding videos like this. already subscribed:) 👍

  • @developer825
    @developer825 7 หลายเดือนก่อน

    I like your comprehensive approach and clear explanations. Thank you for the tutorial.

  • @priyanshugupta4875
    @priyanshugupta4875 16 วันที่ผ่านมา

    great video, cant believe you did it in 18 minutes

  • @RonnieDenzel
    @RonnieDenzel 10 หลายเดือนก่อน

    Thanks for another important react video,concise and straight to the point,already subscribed

  • @persas1683
    @persas1683 5 หลายเดือนก่อน

    Thanks so much! Your tutorial is extremely clear and comprehensive.

  • @Ranjeetvishwakarma-72
    @Ranjeetvishwakarma-72 3 หลายเดือนก่อน

    Amazing Exaplantion , Any beginer can understand these topic very well 🔆🔆

  • @devvagnerBR
    @devvagnerBR ปีที่แล้ว

    the best video about react query that i found, thx for that 💚

  • @floyd0987
    @floyd0987 9 หลายเดือนก่อน

    You're just brilliant! I'd like to see a tutorial on Apollo Client... the way you explain code is extraordinary

  • @franklinmayoyo
    @franklinmayoyo 8 หลายเดือนก่อน

    You guy! You have every piece of knowledge I need. ❤

  • @jimtaika2572
    @jimtaika2572 ปีที่แล้ว

    aaaaah my eyes!! Blinded for couple of seconds. Good content, subscribed

  • @adeemmmm
    @adeemmmm 3 หลายเดือนก่อน

    Thank you for having a tutorial for everything

  • @d3215k
    @d3215k 8 หลายเดือนก่อน

    Thanks. Your tutorial is very helpful. Hopefully there will be some regarding Tanstack routers too

  • @srikanthracharla420
    @srikanthracharla420 ปีที่แล้ว +1

    Subscribed, this is what I am looking for 🔥

  • @Aliena92
    @Aliena92 ปีที่แล้ว +3

    Concise and simple explanation! Thank you!

  • @serkan1804
    @serkan1804 8 หลายเดือนก่อน

    Many thanks, I always find your videos really helpful.

  • @blaqhakym
    @blaqhakym ปีที่แล้ว +3

    😊 You got me when you said "over 30% of you are not subscribed". I quickly tapped the subscribe button immediately. Thanks for the amazing content bro

  • @astro-diego
    @astro-diego ปีที่แล้ว +1

    Concise and helpful. Nice explanation about React query. Thanks a lot!

  • @MrTouqeerhameed
    @MrTouqeerhameed 7 หลายเดือนก่อน

    Nice and short with full of information

  • @Di-yes
    @Di-yes 11 หลายเดือนก่อน

    Love this library. Really useful one for sure.

  • @claudioparra8507
    @claudioparra8507 6 หลายเดือนก่อน

    just what I needed thank you!

  • @johnacsyen
    @johnacsyen 8 หลายเดือนก่อน

    Well explained. Thanks for the time to make this tutorial.

  • @chinmayghule8272
    @chinmayghule8272 8 หลายเดือนก่อน +5

    I have to say here that this tutorial wasn't noob-friendly at all. I mean, you didn't even explain the difference between query and mutation. For those who don't know, query here means getting the data i.e. a GET request, while a mutation means mutating/changing the data i.e. a POST/PUT/DELETE request.

    • @brokegod5871
      @brokegod5871 หลายเดือนก่อน

      If you are learning a library like React Query without even knowing what query/mutation and all those are, that clearly means you don't even know how normal fetching and all works and why React Query exists in the first place. Riding the hype train much?

  • @xyz9714
    @xyz9714 9 หลายเดือนก่อน

    It's really easy to learn things with your nice way of explaining.
    Can you also talk about state management with react-query and if it's possible to replace redux with it?

  • @syedismail4896
    @syedismail4896 2 หลายเดือนก่อน

    12:14 when query is invalidated, it marks as stale but it doesn't immediately refetch them, it relies on conditions like component re-renders etc to trigger the actual refetch.
    Sequence of events:
    1) on button click, mutation function is called.
    2) on success: the query is marked as stale. (which causes internal state change in useQuery which is also a reason for re-render)
    3) setTitle("") causes a re-render
    4) component renders and react-query sees the stale query while rendering
    5) refetch happens

  • @bake-holmes
    @bake-holmes 6 หลายเดือนก่อน

    Your videos are very helpful, thank you !

  • @Shaheer-xs5os
    @Shaheer-xs5os ปีที่แล้ว

    Highly valuable! thank you for this video!

  • @dudeyouhavenoidea
    @dudeyouhavenoidea 11 หลายเดือนก่อน

    Lol, The Subscribe part made me subscribe, nice

  • @toddd5890
    @toddd5890 10 หลายเดือนก่อน

    very very clean tutorial thanks a lot bro

  • @Mainak908
    @Mainak908 ปีที่แล้ว

    Awesome man❤❤...u r doing a good work...keep it up

  • @Murph709
    @Murph709 27 วันที่ผ่านมา

    Great tutorial!

  • @oscardasilva971
    @oscardasilva971 ปีที่แล้ว +2

    Excellent explanation 👏

  • @maximemondello6174
    @maximemondello6174 ปีที่แล้ว

    Subscribed ! exactly what I need to start using the lib ! thanks ;)

  • @mammad_mpk1309
    @mammad_mpk1309 ปีที่แล้ว

    clean and contentfull

  • @johndoe4016qweasd
    @johndoe4016qweasd ปีที่แล้ว

    Awesome! Thank you!

  • @ronitmitra3144
    @ronitmitra3144 6 หลายเดือนก่อน

    Simple ND TO THE POINT

  • @KnownTechnical
    @KnownTechnical 11 หลายเดือนก่อน

    This helps lot to me brother. subscribed you

  • @narayanapudoor9321
    @narayanapudoor9321 6 หลายเดือนก่อน

    Awesome video. Thanks

  • @micostco
    @micostco 11 หลายเดือนก่อน

    Amazing tutorial.

  • @arnauddsj-monagencecreative
    @arnauddsj-monagencecreative 11 หลายเดือนก่อน

    very well explained thanks a lot

  • @joenguyen8204
    @joenguyen8204 5 หลายเดือนก่อน

    awsome, good stuff

  • @mdkawsarislamyeasin4040
    @mdkawsarislamyeasin4040 ปีที่แล้ว

    Awesome simple example and great tutorials

  • @syedmusab2372
    @syedmusab2372 ปีที่แล้ว

    Worthy video ❤

  • @vaysberg_
    @vaysberg_ 5 หลายเดือนก่อน

    Great video, thank you ❤. One question on my mind... what is the point of using state manager if this library provides such incredible possibilities for customizing cache? I just watched the video, I will think about it myself, I just want to know feedback from experienced people who have worked with this library.

  • @SarahAyuNanda-qr6bm
    @SarahAyuNanda-qr6bm 5 หลายเดือนก่อน

    thanks a lot, and i wonder what extension you use so your next code will be auto shown while you're typing

  • @hesam-init
    @hesam-init ปีที่แล้ว

    react query changed my life :0

  • @thothhermes7270
    @thothhermes7270 หลายเดือนก่อน

    Thanks bro.

  • @preciousvelia
    @preciousvelia ปีที่แล้ว +1

    Thank you!!!

  • @kiranm5419
    @kiranm5419 11 หลายเดือนก่อน

    Awesome Video

  • @saeqasultani3233
    @saeqasultani3233 6 หลายเดือนก่อน

    It was great thanks

  • @ai-yw3zn
    @ai-yw3zn ปีที่แล้ว +1

    I'm doing the same as you. Can you show me the folder structure like the video you made so I can follow along and understand it easily when I learn about it?

  • @lumierre0791
    @lumierre0791 10 หลายเดือนก่อน

    Very straightforward tutorial!
    Can I use the React Hook form and React Query at the same time or is it recommended just the React Query only?
    What combinations would you recommend? Let's say I'm gonna use the Laravel/Express as my backend.

    • @cosdensolutions
      @cosdensolutions  10 หลายเดือนก่อน

      You can definitely combine the two. React Query is async state management, and RHF is form management, so they do different things. But you can use the result of RHF submit to update RQ query cache and see your data, or trigger a refetch by invalidating the cache

    • @lumierre0791
      @lumierre0791 9 หลายเดือนก่อน

      @@cosdensolutions thank you sir, hoping you can have a tutorial on how to combine these two. Thank you

  • @Drayken
    @Drayken 6 หลายเดือนก่อน

    Probably should've included parts for:
    useQueries, dependent useQuery and dependent useQueries.

  • @CodeHassanX
    @CodeHassanX ปีที่แล้ว

    amazing videos, thanks

  • @weihyac
    @weihyac 7 หลายเดือนก่อน

    thanks !

  • @vellankiindeevar5530
    @vellankiindeevar5530 ปีที่แล้ว

    bro make a tutorial about react table also . you make things really through . plzz

  • @jay-kv6wn
    @jay-kv6wn ปีที่แล้ว

    Excellent video

  • @eedelson1030
    @eedelson1030 11 หลายเดือนก่อน

    What autofill extensions are you using? They look extremely helpful. I kept watching and answered my own question. Copilot. This tutorial was so helpful!

    • @cosdensolutions
      @cosdensolutions  11 หลายเดือนก่อน

      Haha there you go☺️

  • @emmanuelareiza9699
    @emmanuelareiza9699 5 หลายเดือนก่อน

    Ty Bro

  • @satellitesage2487
    @satellitesage2487 4 หลายเดือนก่อน

    I had a hard time getting the expected behavior for `staleTime: Infinity`. I accidentally placed the instantiation of query client inside of the component, hence, it was always refetching even though I've set the staleTime to Infinity.

  • @alexandrefortes4571
    @alexandrefortes4571 9 หลายเดือนก่อน

    There is any video explaining prefetchQuery ?

  • @bhargavkumar
    @bhargavkumar ปีที่แล้ว +1

    How to fetch data on the server and then show it to the client in Nextjs app router using Tanstack Query.?

    • @cosdensolutions
      @cosdensolutions  ปีที่แล้ว +1

      that's a bit more complicated. it's still a work in progress last I've heard

  • @javierlimontaneyra2637
    @javierlimontaneyra2637 11 หลายเดือนก่อน

    Hi. Thanks a lot for this video. Very clean, informative and objective. It's possible to explain in a video an example o a simple explanation of the use of GraphQL Subscriptions using React-Query??

    • @MikeNeder
      @MikeNeder 10 หลายเดือนก่อน

      GraphQL and React-query in the same app? is that necessary?

    • @javierlimontaneyra2637
      @javierlimontaneyra2637 10 หลายเดือนก่อน

      @@MikeNeder Yes.

  • @stevebuonincontri6853
    @stevebuonincontri6853 หลายเดือนก่อน

    what copilot plugging are u using - Im in webstorm

  • @josemariaaguilar8936
    @josemariaaguilar8936 ปีที่แล้ว

    Excelente, comenzare a usarlo

  • @arpithagm2231
    @arpithagm2231 5 หลายเดือนก่อน

    is onSuccess being deprecated from useInfiniteQuery? If so, what is the alternative for onSuccess?

  • @joeblack8843
    @joeblack8843 6 หลายเดือนก่อน

    jo, your vscode theme is slick. I like how the code is poping out. whats the name of it?

  • @lukemontana9792
    @lukemontana9792 8 หลายเดือนก่อน

    great

  • @prashlovessamosa
    @prashlovessamosa ปีที่แล้ว

    Thank you.

  • @jheanbrizadao2429
    @jheanbrizadao2429 9 หลายเดือนก่อน

  • @regilearn2138
    @regilearn2138 2 หลายเดือนก่อน

    teach us how to use redux toolkit and Tanstack query together

  • @alyu6351
    @alyu6351 หลายเดือนก่อน

    a senior developer in 19min? I'm in

  • @suhakarkhy639
    @suhakarkhy639 ปีที่แล้ว

    subscribed!

  • @VerticalHub1
    @VerticalHub1 3 หลายเดือนก่อน

    Nice but it's much. I created a simpler API manager with axios and custom hooks. And it was not this complex . Even integrated redux and local storage only five needed hooks to manage CRUD.

  • @pointer333
    @pointer333 21 วันที่ผ่านมา

    When you're conducting a tutorial, and you realize you haven't breathed once in 5 minutes straight, you need to slow down. It's like you're racing to finish. At that point, it's a "hurried demo" at best.

  • @aymanechaaba
    @aymanechaaba ปีที่แล้ว

    How do you revalidate data when we're fetching on rsc?

  • @bardhokajvazi2726
    @bardhokajvazi2726 9 หลายเดือนก่อน

    Somehow using the onSuccess of useMutation with the useQueryClient doesn’t work. Do you have an idea why ?

  • @ruggeddog3103
    @ruggeddog3103 11 หลายเดือนก่อน

    subscribed

  • @nawazishali274
    @nawazishali274 10 หลายเดือนก่อน

    Hi Cosden can you tell about react query useQuery onSuscess has been depricated in latest version of react query ..what's it alternative ?

  • @13furlan
    @13furlan 10 หลายเดือนก่อน

    tks bro

  • @TheMikkelet
    @TheMikkelet หลายเดือนก่อน

    On react native, does it cache with persistent storage or just from ram? If I enable cache and kill the app, will it refetch?

  • @BRK_31
    @BRK_31 10 หลายเดือนก่อน

    🤩🤩🤩

  • @Vlad-gr9ds
    @Vlad-gr9ds 10 หลายเดือนก่อน

    What is the extension which gives inline "You 3 hours ago Initial commit"?

  • @capt_vj
    @capt_vj 9 หลายเดือนก่อน

    nice

  • @muhammadaamirkhan9185
    @muhammadaamirkhan9185 ปีที่แล้ว

    Does Reactquery Fn() executed again and again on every render if no taleTime is set? or it will first execute on the mount and then cache that data, and then on every render it will show the cached data ?? anyone please guide..
    I am cleared that on first mount the queryFn data will be cached and then on every mount the cached data will be shown without executing the queryFn . (when taleTime is set to Infinity).. But my question is regarding rendering ..

  • @ryuusha5339
    @ryuusha5339 6 หลายเดือนก่อน

    thanks, i tried using it for data deletion, but if I try to delete multiple data , the invalidate queiy only triggers for the first time: the onsuccess function is triggered every time but invalidate only works for the 1st time, anyone know the solution for my problem?