RTK Query Complete Guide in Hindi | CRUD Operations, Caching & Optimistic Updates | Ep.21

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • Starter Code: github.com/procodrr/redux-cou...
    Final Code: github.com/procodrr/redux-cou...
    Welcome to our comprehensive tutorial on building a CRUD application using RTK Query! In this video, we delve deep into the advanced features of RTK Query, focusing on efficient data handling techniques like caching and optimistic updates. Whether you're a beginner or an experienced developer, this tutorial will equip you with the skills to create more dynamic and responsive web applications.
    🔍 What You'll Learn:
    Introduction to RTK Query: A brief overview of RTK Query and its role in modern web development.
    Setting Up the Project: Step-by-step guide to setting up your development environment for a CRUD application.
    CRUD Operations: Detailed explanation of Create, Read, Update, and Delete operations using RTK Query.
    Caching Mechanisms: Learn how to implement intelligent caching to reduce server load and improve user experience.
    Optimistic Updates: Master the technique of optimistic updates to instantly reflect changes in the UI, enhancing the perception of your app's responsiveness.
    Error Handling: Strategies for handling and displaying errors effectively in a user-friendly manner.
    Best Practices: Tips and tricks to write clean, efficient, and maintainable code.
    🔧 Technologies and Tools Used:
    React.js
    Redux Toolkit
    RTK Query
    RESTful APIs
    👨‍💻 Prerequisites:
    Basic understanding of React and Redux
    Familiarity with JavaScript and REST APIs
    📖 Chapters
    00:00 RTK Query enables efficient data fetching, caching, and optimistic updates.
    02:27 Using JSON server for backend integration
    06:57 Adding and mapping task components with update and delete functions.
    09:09 Handling loading, error, and slow network scenarios
    13:14 RTK Query provides automatic caching for optimized data fetching.
    15:24 RTK Query allows using RT query library inside Redux Toolkit for CRUD operations and optimistic updates.
    19:50 Using RTK Query with Redux in a React application
    22:06 Using the data and properties for rendering
    26:43 Using mutation to create a new task and handle the return object
    29:13 Demonstration of adding and refreshing tasks in real time.
    33:49 Demonstrating CRUD operations and caching in RTK Query
    35:53 Using patch request method to update a task
    40:39 Optimistic updates ensure smooth UI even on slow network
    43:04 Using optimistic updates for handling request failures
    47:44 Optimistic updates are important for providing proper user feedback
    49:46 Optimizing network requests for better user experience
    54:15 Setting up API reducer and middleware in Redux store
    56:33 Completion of Redux and front end course
    Telegram Group : t.me/procodrr
    Sunday QnA Link: meet.google.com/vbp-hqnm-eiq
    Social Media
    🌐 Telegram: t.me/procodrr
    🌐 Linkedin: / anurag-singh-web-devel...
    🌐 Instagram: / procodrr
    🌐 Twitter: / anuragsinghbam
    🌐 Portfolio: anuragsinghbam.com/
    Music by geoffharvey from Pixabay
    #react #procodrr #webdevelopment #RTKQuery #CRUDApplication

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

  • @venateshbanagarcse3188
    @venateshbanagarcse3188 5 หลายเดือนก่อน +2

    Sir, please continue this series with more projects. 🙏🙏🙏🙏🙏. Please don't stop...

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

    the best video on RTK query .. visualising the need for RTK query is awesome

  • @mayureshbande5515
    @mayureshbande5515 3 หลายเดือนก่อน +1

    bro you nailed it. style of explaining each functions & methods without forgetting and pace is just wonderful combination.

  • @binarybulletin
    @binarybulletin 4 หลายเดือนก่อน +1

    Thanks for Teaching in Hindi Just amazing diffrent from other

  • @vedangnikure
    @vedangnikure 15 วันที่ผ่านมา +1

    I have been working on react and redux previously, but still I don't know that much in detail similarly I know lots of hooks but can you please make some videos on hooks as well so that I will learn new things in detail❤🎉

  • @SonuSharma-ef3sp
    @SonuSharma-ef3sp 3 หลายเดือนก่อน +2

    Hello sir,
    I was searching for an rtk query and for the first time I saw your video it was very simple and understandable.
    I will request to make a video on how api handling works on big applications.

  • @vani-pd9nq
    @vani-pd9nq 2 หลายเดือนก่อน

    thank you sir , gratefull

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

    Thank you so much that was really helpful.

  • @atharvkumar2636
    @atharvkumar2636 8 วันที่ผ่านมา +1

    Redux khatam 🙏🏻, Dhanyawaad bhaiya ❤🙏🏻

    • @procodrr
      @procodrr  8 วันที่ผ่านมา

      ❤️

    • @ranjitshinde3763
      @ranjitshinde3763 วันที่ผ่านมา +1

      Bro kya aap bata sakate mai start karu kya react course ye kyuki mai bohot confuse hu bohot sare youtuber hai mene 3 4 you tuber dekhe par itna samaj nahi aya kya mai inki series follow karu main inke other video dekha hu interview wale or other plz reply

  • @sandipshrestha5342
    @sandipshrestha5342 28 วันที่ผ่านมา

    Nice

  • @arvajkhan683
    @arvajkhan683 5 หลายเดือนก่อน +1

    sir i all time your teaching style fan you are great ❤❤❤❤❤❤❤❤❤❤❤❤

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

      Thanks Arvaj 😊

  • @azfarkhan8936
    @azfarkhan8936 3 หลายเดือนก่อน +1

    Is it possible to make api call on my will to keep the data updated? I mean how to use buster ?

  • @vedangnikure
    @vedangnikure 19 วันที่ผ่านมา

    firse dekhna padenga redux ki series samaj aagaya hai but yad nahi reh pa raha hai

  • @devkumar9889
    @devkumar9889 5 หลายเดือนก่อน +2

    bhai tumhara hindi me samjhaya mast hai bakio se

  • @learnCodeWithAshish
    @learnCodeWithAshish 6 หลายเดือนก่อน +1

    Sir aapke padhne kaa tarika kaafi aacha hai kya aap backend ki ek separate series laa sakte ho along with this ?

    • @procodrr
      @procodrr  6 หลายเดือนก่อน +1

      Backend bhi padhayenge, lekin usme abhi 5, 6 mahine kaa time lagega.
      Tabtak frontend aur JavaScript achhe se seekho.

  • @hammad-ur-rehman1777
    @hammad-ur-rehman1777 2 หลายเดือนก่อน

    Sir update k liay PUT krty hayn ya PATCH

  • @vivekchaudhary1768
    @vivekchaudhary1768 9 วันที่ผ่านมา

    You said cache is implement by default, but in my case api is calling again and again. Any idea what is the issue?

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

    Sir User Authenication me I am facing much difficulty Please help me..

  • @sanatan_sanskrutI
    @sanatan_sanskrutI 6 หลายเดือนก่อน +2

    Crud is very important in js aslo but very less people talking about it ?

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

      Sure, I'll make a video on CRUD operation in JavaScript.
      Till then keep learning and sharing 😊

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

    How can i clone the starter codeee ????

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

      Clone the whole repository, you can not clone only one folder.

  • @paras.p
    @paras.p 2 หลายเดือนก่อน

    it's look like QraphQL schema

  • @harharmahadev3115
    @harharmahadev3115 6 หลายเดือนก่อน +4

    Bhaiya typescript ki series jaldi laao

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

      TypeScript aane mein abhi time lagega.

  • @pranavthakur7471
    @pranavthakur7471 6 หลายเดือนก่อน +1

    Bhaiya..react js ke projects aayenge. Or ab firebase ka uskrke projects bnawado plz

    • @procodrr
      @procodrr  6 หลายเดือนก่อน +2

      Pahle JavaScript ke kuchh projects banwayenge uske baad React ke.
      React ke projects ke sath firebase bhi use karenge jab zarurat padegi.
      Till then keep learning and sharing 😊

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

      better to use supabase which uses a relational db. i don't know why not many people talking about it?

  • @arvajkhan683
    @arvajkhan683 6 หลายเดือนก่อน +1

    abhi kaha hua frontend complete abhi to next js and typescript bhe hai bhaiya

    • @procodrr
      @procodrr  6 หลายเดือนก่อน +1

      TypeScript aur Next.js alag playlist mein padhayenge, unka alag hi course hoga.
      Frontend wali playlist mein bas itna hi rahega.

    • @arvajkhan683
      @arvajkhan683 6 หลายเดือนก่อน +1

      @@procodrr fir kab h inhe padane ka irada

    • @procodrr
      @procodrr  6 หลายเดือนก่อน +1

      ​@@arvajkhan683 March April Tak start karenge Typescript.

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

    Sir apney jo Code ka Link dia hai description mai wo dangerous site show kar raha aur agar unsafe per ja kar bhi download kar rahey to chrome download nhi kar raha due to dangerous site please send another code link
    BTW YOUR VIDEO IS GREAT ❤️ 👍

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

      Abhi fix kar diya hai, check karo.

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

      THANKS SIR

    • @htmern
      @htmern 4 หลายเดือนก่อน +1

      Sir can you please a complete video on PWA with react

  • @sandeepkamra6177
    @sandeepkamra6177 28 วันที่ผ่านมา +1

    Hi Anurag, you are such a great inspiration for us. Thanks to share the video with us. I need to take a look once more at optmistic point, however I really understand the concept of RTK query easily and fast.

    • @ranjitshinde3763
      @ranjitshinde3763 วันที่ผ่านมา

      Bro kya aap bata sakate mai start karu kya react course ye kyuki mai bohot confuse hu bohot sare youtuber hai mene 3 4 you tuber dekhe par itna samaj nahi aya kya mai inki series follow karu main inke other video dekha hu interview wale or other plz reply

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

    bhaiya mujhe job nhi mil rhi mai ek mern developer hu aur 3 saal se coding kr rha hu aur u tub se sikh rha hu ..... please help me

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

      i think its better you get placed from college otherwise its very difficult to get placed offcampus.

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

      @@AvikNayak_ tumhare jaise log iske siwa aur kush bol b nhi sakte

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

      @@vishwajeetyadav4480 i know you didn't like what I said but sach toh yehi hai na. Accha problem kaha pe ho raha hai. Resume shortlist hone mein ye online tests nikal ne mein.

  • @PawanSingh-qo1ey
    @PawanSingh-qo1ey 5 หลายเดือนก่อน +1

    BHai tumhe optimistic update dena khud ni aata ha, ye tarika galat ha optimistic update dene ka, jo fetchTasks query diya ha changeQueryData me agar vo paginated hui to kya karoge

    • @procodrr
      @procodrr  5 หลายเดือนก่อน +2

      Let's connect on LinkedIn or Telegram and help me understand what is the right way to do optimistic updates. So that I can make a new video and correct myself.
      LinkedIn: www.linkedin.com/in/anuragsinghbam
      Telegram: t.me/procodrr
      I genuinely welcome you, let's connect.