RTK Query CRUD | Mutations & Auto-Fetching | React Redux Toolkit RTK Query Tutorial - 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ค. 2024
  • In this video we will explore the Redux Toolkit RTK Query Mutations and Auto-fetching in detail with example. RTK Query is a powerful data fetching and caching tool. It is designed to simplify common cases for loading data in a web application, eliminating the need to hand-write data fetching & caching logic yourself.
    ⭐️GitHub link for Reference⭐️
    github.com/dmalvia/Redux_RTK_...
    ⭐️RTK Query Overview⭐️
    redux-toolkit.js.org/rtk-quer...
    RTK Query CRUD | Data Fetching & Caching Tool Part 1 - • React Redux Toolkit RT...
    ⭐️ Support my channel⭐️
    www.buymeacoffee.com/dipeshma...
    🔥 Video contents... ENJOY 👇
    0:00:00 - Intro
    0:00:43 - Code Walkthrough
    0:01:35 - Understanding RTK Query Mutations
    0:02:38 - Create Mutation Endpoints
    0:07:26 - Mutation Hooks
    0:08:08 - Add Operation with RTK query hook
    0:13:07 - RTK query refetch
    0:14:50 - Auto-fetching Providing and Invalidating tags
    0:19:05 - Update Operation with RTK query hook
    0:20:17 - Delete Operation with RTK query hook
    0:22:40 - Outro
    **React Roadmap for Developers in 2021**
    How to Learn React JS ? - • React JS Roadmap for D...
    React in One Project - • Learn React JS with Pr...
    React Redux Toolkit Tutorial - • React Redux Toolkit wi...
    Learn React Redux with Project - • Learn React Redux with...
    What is Redux ? - • Understanding Redux Co...
    Learn React Redux Thunk with Project - • Learn React Redux Thun...
    Learn React Hooks - • Learn React JS Hooks |...
    🔗 Social Medias 🔗
    Twitter: / imdmalvia
    Facebook: / programmingwithdipesh
    Instagram: / dipeshmalvia
    LinkedIn: / dmalvia
    ⭐️ Tags ⭐️
    - Learn Redux RTK Query
    - Redux Toolkit RTK Query Overview
    - RTK Query for beginners
    - Mutations in RTK Query
    - How to use Redux RTK Query Auto-fetching
    ⭐️ Hashtags ⭐️
    #react #redux #toolkit #RTK #dipeshmalvia #tutorial
    Disclaimer:
    It doesn't feel good to have a disclaimer in every video but this is how the world is right now.
    All videos are for educational purpose and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

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

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

    Guys, if the video is helpful to you or you learned something than please appreciate and hit the LIKE and SUBSCRIBE button and help this channel to GROW😉

    • @vengalreddy1536
      @vengalreddy1536 2 ปีที่แล้ว

      bro..Can you do video on like clockify

    • @nomikhan87
      @nomikhan87 2 ปีที่แล้ว

      you did not uploaded code or this video, please update if avilable

    • @michaelsimire7573
      @michaelsimire7573 2 ปีที่แล้ว

      please kindly do video on search filter using rtk query...thanks

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

      Great video with easy explaination. Thanks a lot!

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

    Thanks Dipesh, your videos are always really helpful!

  • @agroforestryconsultancyroz3157
    @agroforestryconsultancyroz3157 2 ปีที่แล้ว

    I like your videos about rtk a lot. Hopefully you will make more videos!

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

    Thank you soooo much, clearly explained, right to the point, amazing work. Bravo!!!

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

    Thank you for the explication, it was very clear and saved me a lot of time. continue making more good videos like this

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

    Such a great video, thanks bro, keep it up

  • @user-ci8ho8dc2t
    @user-ci8ho8dc2t ปีที่แล้ว

    This Video is all you need

  • @shakthinaarayananr7639
    @shakthinaarayananr7639 2 ปีที่แล้ว

    Great !!! thank you so much

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

    Thanks you so much! I never find info about RTK Query on TH-cam, less in Spanish but this is amazing video!

  • @KevinAnderson-zq6bh
    @KevinAnderson-zq6bh ปีที่แล้ว

    Great!

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

    Thank you it helps me lot

  • @hbela1000
    @hbela1000 2 ปีที่แล้ว

    cool, looking forward to more with NextJS.

  • @mamlzy
    @mamlzy 2 ปีที่แล้ว

    Thank you so much, it is really helpful for me!

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

    super dupar tutorials man

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

    u r the best
    i have watched many video but ur explaination was superb.
    thank u so much sir.

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

    Amazing video available on RTK Query and Mutation

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

    you explained it clearly. Thnaks

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

    ❤always best

  • @luv2331
    @luv2331 2 ปีที่แล้ว

    Neat and clean (just added in my watching list will use it in my next assignment) .....looking forward for more, also please can we have something just with JS, as I have seen all are following TS cause of rtk documentation.
    Plus use something like JSON placeholder (not locally) in that maybe🙌🏻

  • @rasimsiddique9617
    @rasimsiddique9617 2 ปีที่แล้ว

    Owsm

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

    amazing instruction!!!

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

    Thank you so much

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

    Great explanation, thank you for this resource!

  • @SaadKhan-xf3ry
    @SaadKhan-xf3ry 2 ปีที่แล้ว +2

    very well explained, Thank you so much!

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

    Awesome videos - great information - great explanations 😃😃😃

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

    LOVE THE VIDEO. CANT WAIT FOR PART 3

    • @DipeshMalvia
      @DipeshMalvia  2 ปีที่แล้ว

      Unfortunately, I don't have third part. I am think want else is required to be included in RTK query to make part 3.

    • @Petah5
      @Petah5 2 ปีที่แล้ว

      @@DipeshMalvia Part 3, editing the contact in a form.

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

    Thank you for the amazing tutorial. I have a problem, automated re-fetching is not working when I put form in a modal or a drawer and display data on a table. Both on different component.

  • @nazimsheikh9563
    @nazimsheikh9563 2 ปีที่แล้ว

    thank you for this video

  • @dzjalilo
    @dzjalilo 2 ปีที่แล้ว

    Thanks alot, and keep going making new vidoes

  • @dennisgonzales9521
    @dennisgonzales9521 2 ปีที่แล้ว

    awesome! thanks

  • @tiolampard4458
    @tiolampard4458 2 ปีที่แล้ว

    nice video, thanks bro

  • @zahidshaikh3122
    @zahidshaikh3122 2 ปีที่แล้ว

    Thanks a lot sir, now it's time to say Goodbye to Redux Saga :))

  • @user-pm3rp4uz9s
    @user-pm3rp4uz9s ปีที่แล้ว +1

    very helpful video I ever seen :)🤗

  • @petarkolev6928
    @petarkolev6928 2 ปีที่แล้ว

    Good video!
    Any idea how to implement data prefetching? I need to prefetch some stuff in the background while my components are rendering.

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

    Nice.

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

    thank you bro from Kazakhstan

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

    bro bro brooooo, thanks for 14:21, i had a bug here:), but now i can resolve it:)))))))))

  • @user-iy2hd6ix9j
    @user-iy2hd6ix9j 2 ปีที่แล้ว +1

    cool !) we wait new video! thanks! =)

  • @Tonystark-qs1du
    @Tonystark-qs1du 2 ปีที่แล้ว +2

    Hi bro, ur videos are great and I'm following, can u pls make Video on Login-System in two ways like:
    1. With sample static JSON data for creds
    2. With NodeJS server.
    Waiting for ur Video bro. Thank you 😊

  • @vhsphshbs
    @vhsphshbs 2 ปีที่แล้ว

    Your videos are great. Really helpful. Can u pls put videos more frequently. You keep too much gap

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

    Sir how to implement infinite scrolling and fetching data for scrolling in React and redux please make video on it

    • @ritrikrohra3289
      @ritrikrohra3289 2 ปีที่แล้ว

      yes sir please make a video on it

  • @naman_dw
    @naman_dw 2 ปีที่แล้ว

    Next JS tutorial please, thank you!

  • @jammer0419
    @jammer0419 2 ปีที่แล้ว

    Do you have the final code for this second video? The repo seems to only have the code from the 1st video. This was a great crash course... thanks

  • @manishasarangi8079
    @manishasarangi8079 2 ปีที่แล้ว

    i need help in displaying success/error response of mutation result..

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

    Hi Dipesh,
    Thanks for the video, It is ultimate.
    can you please help me out , how to use redux devtool to indentify which url we are posting via redux devtool.
    Thanks

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

    Hi can you please explain createSelector, createEntityAdapter and getSelectors? Thanks for the contents you put out here

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

    Hi Dipesh This is nice example for Redux rtk query .
    But I need your suggestion ex
    1 api is post method and this is get user list
    2 api is post method there just pass data
    I am calling 2 api then how to Re-fetching 1 api

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

    hi dipesh can make a video for writing unit test for this movie app

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

    @DipeshMaliva
    I need some suggestions from u about rtk queries
    I had a scenario of 3 APIs
    1. Task generate api it's a post api so I can use mutation for that.
    But after that I got response as taskId I need pass to
    Second api it's a get api as status query it gives response as converting/ completed
    So if it's completed
    I need to pass that taskId to download api it will give result that result I am blob and downloading
    Can u suggest me for second and third api how to call inside the function

  • @dieuhuyen0812
    @dieuhuyen0812 2 ปีที่แล้ว

    After being back into RTK query I am wasting time in having a 200 response but the { data, } remains undefined, even after waiting. Fetching, loading keep being true. Endpoint type? What could be the reason?

  • @developerdeepu6318
    @developerdeepu6318 2 ปีที่แล้ว

    Why providesTags['Contact'] and invalidatesTags['Contact'] are throwing error ? Please answer me if anybody knows how does it work ?

  • @pitbullxp
    @pitbullxp 2 ปีที่แล้ว

    Why does RTK query fetch contact id 3 after you deleted it?

  • @Libturd
    @Libturd 2 ปีที่แล้ว

    Anyone know how to cancel requests/provide abort signal to rtk-query?

  • @shubhamranjan4596
    @shubhamranjan4596 2 ปีที่แล้ว

    Thanks unit test can u do??

  • @velitetik8720
    @velitetik8720 2 ปีที่แล้ว

    How can we apply socket in instead of query mutations and refetch? It would be great help if anyone can answer.
    Thanks

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

    why dont we just use react query ?
    redux toolkit query has a lot of boilerplate code

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

    @dispesh can u make tutorial on unit testing(jest)

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

    धन्यवाद हिन्दू भाई!