Redux Middleware/Async/Thunk: The complete Guide

Поделиться
HTML-код
  • Опубликовано: 28 июл 2024
  • This video I will be covering middleware and asynchronous actions within React/Redux. We'll cover why we need to use redux thunk to perform asynchornous actions as well as go over an example on how to fetch data from a public API
    If you guys like this video come check out my free course on react/redux at:
    courses.sloppynetworks.com
    timestamps:
    00:00 middleware intro
    03:00 Middleware Example
    27:23 Async Intro
    28:29 Async issues in Redux
    42:41 Redux Thunk
    51:25 Redux Reqeust/Success/Failure Pattern
    / sanjeev_tea
    / sanjeev_tea
    -Sanjeev Thiyagarajan
  • НаукаНаука

Комментарии • 133

  • @andmoreagain
    @andmoreagain 3 года назад +39

    Your ability to speak clearly without constant needless interjections and the fact that you spent the extra time to ensure that your audio was well edited and captured really take this tutorial to the next level. Thank you for this! I've paid for classes/teachers that are not half as competent as you are as a speaker.

  • @tjldsl
    @tjldsl 3 года назад +36

    This is the clearest explanation of this whole flow. Thank you so much!

  • @Harker911
    @Harker911 3 года назад +2

    No, you did a great job explaining it. One of the crucial parts is showing us in-depth why the async-await way doesn't work without the Redux-Thunk middleware. So important to explain what's happening under the hood. Can't stress that enough. Without the knowledge, I can still make it work in my app, but I end up having a shallow understanding of it all and won't understand code that is a little more complex. Also, explaining things in-depth helps me so much with confidence. I don't think tutorials are bad at all, but if things are explained more in detail, without taking certain parts for granted, the things you learn from tutorials stay with you for sure. It doesn't lead to tutorial-purgatory. Not for me, at least.

  • @codyrap95
    @codyrap95 2 года назад +12

    This is pure gold! I have my job interview tomorrow and I've been scratching my head to understand these concepts. After hours upon hours of udemy and youtube, I finally came across this video and was able to understand this concept. Thank you!

    • @mb3_media
      @mb3_media 2 года назад

      Did you get the job man?

  • @DarkMetroid777
    @DarkMetroid777 2 года назад

    Was dealing with the error "Actions must be plain objects. Use custom middleware for async actions.", this helped clear things up. Thanks a ton posting this!

  • @zahramirzaei3356
    @zahramirzaei3356 Год назад

    This is the clearest and most understandable video that I have ever seen about Redux Middleware and Redux Thunk.
    Please carry on with your good work.
    Thank you very much.

  • @aidanwalker7136
    @aidanwalker7136 3 года назад

    Watched both your redux videos now, I have struggled wrapping my head around redux a lot in the past and decided to give it another crack, makes perfect sense now :)

  • @SH-lt2iv
    @SH-lt2iv 3 года назад

    Your teaching style is one of the best I've encountered.

  • @philippec4448
    @philippec4448 2 года назад +1

    I want to thank you so much for your tutorial, you have no idea how much it has helped me understand how Redux works under the hood when API calls are made. I've watched a bunch of tutorials but all of them just threw the code barely explaining stuff. So yes you can write the code but without understanding it. With your video, finally I feel like I truly understand why you have to write this or this or this. Again, a big thank you!

  • @Joa764
    @Joa764 3 года назад +1

    It's very hard to find material on Redux with hooks (the documentation is using classes and the hooks section is complex), but here we can find anything and that's impressive. Your channel has great content and the explanations are very simple! You'll go places with this channel, continue to do a great job! You've earned a subscriber!

  • @beramaks
    @beramaks 3 года назад

    The best video on the topic! Perfect, clear, and all in one place. Thank you so much!!!

  • @mb3_media
    @mb3_media 2 года назад

    Hi Sanjeev, this is the best course of Redux that I found in the internet. Here in Brazil we have a lot of top programming courses, but none of them was capable to deliver such an amount of awesome content like you did. Very clearly, amazing english utterance, and for last but no least important, the quality of examples. All clear and simple. I will enroll in your React course. Thank again!

  • @arsyaswanth5
    @arsyaswanth5 2 года назад

    This is the best explanation I have seen on the whole internet for redux middleware. Detailed and clear!

  • @ashishkpkpkp
    @ashishkpkpkp 2 года назад

    Only topic in react for which you will not find a good tutorial anywhere on RUclips or any other resource...the reason being it's one of the hard and advanced topic of React...Finally got some understanding of why we need to use async middleware logic using redux thunk....Thank you so much man...Really Great..😄

  • @RanjeetKumar_23
    @RanjeetKumar_23 2 года назад

    By far the best and very well detailed tutorial on middleware i have found on internet. have found a really OG resource today, definitely will go through other topics on this channel. Thanks Sanjeev.

  • @valencia375x
    @valencia375x 2 года назад

    Great video describing this topic! Lot's of videos here on RUclips are quite old and outdated and I'm glad to have found one that is up-to-date and useful :)

  • @yaserhasan6004
    @yaserhasan6004 3 года назад

    this is the best explanation i could find on youtube for redux and redux-thunk,
    great tutorial thank you

  • @pradippandey2631
    @pradippandey2631 Год назад

    Given your eloquent voice, Loved to watch this tutorial. Totally got the concept. You make it so straightforward and easy to understand.

  • @rumym7292
    @rumym7292 3 года назад

    This is the best explanation of Redux Middleware and asynchronous calls. Thank you!

  • @mrFighter924
    @mrFighter924 3 года назад

    Best explanation on the web for redux-react thunk. Thank you so much!!! (Finally someone property explain this)

  • @mohakmaheshwari8756
    @mohakmaheshwari8756 2 года назад

    Learning Redux Is definitely incomplete without this video. Thank you so much.
    You earned a subscriber. ✨👏👏👏

  • @paulbuyswebdeveloper7402
    @paulbuyswebdeveloper7402 3 года назад

    Bro.... really great tutorial. I wish this was the first video I ever redux video I ever watched... would have saved me so much time.

  • @rogerjackson5995
    @rogerjackson5995 2 года назад

    OMG !!! Amazing explanation. Really loved the way you create each video. 😍😍😍😍

  • @amaanimtiyaz
    @amaanimtiyaz Год назад

    The only best Video on thunk Redux. Recommended.

  • @salmaankhan1814
    @salmaankhan1814 3 года назад

    Dude, I was lucky that I found your video, because if I did not, who knows, maybe it would have taken months if not years to actually understand these very important principles of react! Thanks for being!

  • @h_nooh7390
    @h_nooh7390 2 года назад

    The best video I've seen for middleware, thanks a lot

  • @prawarmundra4931
    @prawarmundra4931 2 года назад

    the explanation in this video is outstanding. clear and crisp knowledge of redux amazing. love to see more content from you

  • @boopfer387
    @boopfer387 2 года назад

    Excellent excellent and excellent 5 stars Sanjeev!!!!

  • @keshavjha9835
    @keshavjha9835 3 года назад

    It was a great tutorial..thank you for making these tutorials on these type of confusing topics which many youtubers don't explain that well

  • @kokoyroy
    @kokoyroy 2 года назад

    the best explaination of middlewares out there ! thank you sooooooo much!!!!!

  • @danieljing9319
    @danieljing9319 3 года назад

    explanation is really great and it's easy to understand what you are talking about, great stuff

  • @abhiramchandran3983
    @abhiramchandran3983 3 года назад

    Finally found a great video with clear explanation, thank you

  • @chinonsondukwe7838
    @chinonsondukwe7838 3 года назад +1

    Now this makes sense!!! Thanks so much for this piece

  • @calsonsheng5612
    @calsonsheng5612 2 года назад

    you should have your own paid course, the content is pure gold and much better than any other provider I watched out there!

  • @Manish-qd1sz
    @Manish-qd1sz 2 года назад

    really grateful I learned many things here.
    Please carry on with your good work.
    Thank you so much! 🙏

  • @xiaoli3878
    @xiaoli3878 3 года назад

    You really did a great job! Very clear explanation!

  • @143balug
    @143balug 3 года назад

    Detailed explanation of the complete flow, Thank you

  • @SRAYOSHI
    @SRAYOSHI 2 года назад

    Thank u so much. Best tutorial in yt on redux middleware.

  • @abhijeetbrahmbhatt8135
    @abhijeetbrahmbhatt8135 3 года назад

    Great explanation, thank you for the video! Keep up the good work.

  • @XiagraBalls
    @XiagraBalls 2 года назад

    I thunk this was an exceptional tutorial. Good job! 😀

  • @nelsonfrank
    @nelsonfrank 3 года назад

    This tutorial helped me make my job done, Thank you so much!

  • @CF-zz2gc
    @CF-zz2gc 3 года назад

    This is very helpful for start-ups, thank you so much!

  • @shivrajnag12
    @shivrajnag12 2 года назад

    Sanjay you are awesome when it comes to explanation. This is by far the best explanation of Redux I have listened. One request though please increase your VS Code font size for upcoming videos, it's really difficult to look at the code at this size. This can be a good interview question too Implement your own simple custom logging middleware in redux.

  • @supplyuniquenotessun4562
    @supplyuniquenotessun4562 3 года назад

    awesome tutorial .. i admired your style so much .. perfect .. very perfect .. many thanks.

  • @ajayjayapalan1547
    @ajayjayapalan1547 2 года назад

    Trust me those aren't boring examples . ❤️. great content 💯

  • @riwjin
    @riwjin 3 года назад +1

    this is such a hidden gem. liked and subbed!

  • @serhiikichuk
    @serhiikichuk 6 месяцев назад

    Thanks! The clearest explanation of fundamentals :D

  • @WhiteNuzzle11
    @WhiteNuzzle11 3 года назад

    Great and clear explanation, thanks. Keep on going friend. Cheer!

  • @serhanguney492
    @serhanguney492 2 года назад

    I've set this as my morning alarm!

  • @t.hanprab
    @t.hanprab 3 года назад

    Thank you! It's a hard concept but You can explain very clearly.

  • @devDive615
    @devDive615 2 года назад

    This is the best redux vidéo ever made

  • @letsinspire3673
    @letsinspire3673 2 года назад

    Awesome Video... cleared the whole concept. 🎉🎉🎉👍😊

  • @sanskarkhare1599
    @sanskarkhare1599 3 года назад

    your explaination is great
    loved the video

  • @shoukathennadesigns5135
    @shoukathennadesigns5135 2 года назад

    Outstanding content. You nailed it👍

  • @aungmoethu1835
    @aungmoethu1835 3 года назад

    Thankyou so much. That helped me a lot to understand redux middleware.

  • @dheerajs2838
    @dheerajs2838 2 года назад

    very good tutorial.. fantastic job man

  • @ericholdridge4102
    @ericholdridge4102 3 года назад

    Currently learning Redux by building a weather app and this helped me out a ton when fetching data from an api. Was having issues updating the state. I knew it was an async await problem but couldn't find a solution.

  • @leehj0110
    @leehj0110 2 года назад

    best redux tutorial ever. 👍

  • @vasanthkumar-hf2nk
    @vasanthkumar-hf2nk 2 года назад

    Thanks dude, understood concepts clearly

  • @madhuvarun2790
    @madhuvarun2790 2 года назад +1

    awesome explanation. You earned a sub.

  • @poojajethva
    @poojajethva 2 года назад

    Very helpful video .. easy explanation

  • @arindamchattopadhyay4272
    @arindamchattopadhyay4272 Год назад

    Superb.... Understood after having a lot of head-ache

  • @juanpumpkinpie6550
    @juanpumpkinpie6550 3 года назад

    great value video!. Comparing with all bullshit youtube is allowing people to upload on the platform making free videos teaching just mistakes, this video has a huge difference and the real explanation how middleware's behave. Good english accent, explanations about what and why, step by step which means it has pedagogy. More videos like that!

  • @mijan-karim
    @mijan-karim 3 года назад

    Thank you very much for this nicely explained video :)

  • @yolo48554
    @yolo48554 3 года назад +2

    Thank you for creating your tutorials, I really wish you could also make one intended for Hooks, beginner to intermediate level maybe? Thank you again.

  • @codemi6283
    @codemi6283 3 года назад

    he is a hero
    thank you bro for this great content

  • @SanghoBose5
    @SanghoBose5 3 года назад

    Amazing tutorial. Thank you.

  • @willyhorizont8672
    @willyhorizont8672 2 года назад

    thank you this tutorial clearly helpful

  • @ankitchoudhary197
    @ankitchoudhary197 3 года назад

    Explained very nicely

  • @tridevthakur7711
    @tridevthakur7711 Год назад

    I was searching the same content.Thanks

  • @joschaneske300
    @joschaneske300 2 года назад

    Great explanation, thank you

  • @user-eb4we1mc3z
    @user-eb4we1mc3z 2 года назад

    Great course!Thanks

  • @keerthanachar
    @keerthanachar 2 года назад

    Great explained ❤️

  • @saurabhsalgaonkar2488
    @saurabhsalgaonkar2488 2 года назад

    Awesome explanation. Please make more deep react concept videos like this 👍

  • @mhamzarajput
    @mhamzarajput 3 года назад

    perfect man (y) thanks for the such good content

  • @jscrack8443
    @jscrack8443 2 года назад

    Superb video man.... :)

  • @marekszirdzins
    @marekszirdzins 2 года назад +1

    In order to check the Loading in real time, you could also use network throttling section in the F12 Chrome dev tools and make the connection slower.

  • @muhammedladeed2280
    @muhammedladeed2280 2 года назад

    awesome explanation bro

  • @nicolasheredia2519
    @nicolasheredia2519 3 года назад

    It's a realy nice video. Ty

  • @jrgunner10
    @jrgunner10 2 года назад

    Great explanation

  • @kurczak191
    @kurczak191 3 года назад

    Awesome job!

  • @thimothy1213
    @thimothy1213 Год назад

    Thank you so much for explaining the Redux-thunk and Redux-Devtools. Will you be able to make a video on Redux-Toolkit and Redux-Sega this year ?

  • @milanpavlovic8141
    @milanpavlovic8141 4 месяца назад

    Amazing video

  • @johncybinoy9567
    @johncybinoy9567 4 года назад

    Nicely explained.

  • @pranavbhagwat9758
    @pranavbhagwat9758 4 года назад +1

    Do you have a video to build a fully functional react redux ecommerce app.

  • @Zen.Obie1
    @Zen.Obie1 2 года назад

    Great Video

  • @TuanNguyen-ls6hm
    @TuanNguyen-ls6hm 2 года назад

    WOW, great tutorial, I make myself hit the like button and subscribe to your channel immediately

  • @adanos2006
    @adanos2006 2 года назад

    pretty nice tutorial.

  • @melaniesigrid8163
    @melaniesigrid8163 2 года назад

    Thanks for an awesome tutorial! I have one question, does anyone know how he makes it so VSCode automatically imports? It would be really helpful!

  • @malcommiya2823
    @malcommiya2823 3 года назад

    Hi Sanjeev...Thank you for the explanation it is now 2021 I have used your tutorials previously for Redux and I am now solid. Do you also use the reduxtoolkit?

  • @mdsakibahmed4699
    @mdsakibahmed4699 3 года назад

    Thank you so much

  • @codinginjs2178
    @codinginjs2178 3 года назад

    Can please one video on JWT or AUTH using reacts, the way you explain it seriously I understand it now for a long time...

  • @PWBastille
    @PWBastille 2 года назад

    Thank you for guide! But I did not understand, why do we use "getState" in asynk function? Can I get access to the store while action?

  • @abekaid9527
    @abekaid9527 3 года назад +1

    What's the React extension snippets that you use?

  • @prakartipanagaria8602
    @prakartipanagaria8602 2 года назад

    please help me on this topic as i want to understand that until we get new state from use selector how to stop navigating to next screen or can write the logic of navigation in action creator after we got the response is this good approach .

  • @sohadmad1823
    @sohadmad1823 Год назад

    Amazing!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @cebugdev
    @cebugdev 2 года назад

    ive been looking around to understand about redux thunk and found this video, thank you.
    Can you share the source?

  • @mohamedyoussef8835
    @mohamedyoussef8835 2 года назад

    Awesome Tutorials +++++++++++++++++++++ Thank You

  • @danielgreen5803
    @danielgreen5803 2 года назад

    So if you need to pass that same data to other components? do you dispatch on every component? use connect?

  • @anandapadmanabhanvt
    @anandapadmanabhanvt 2 года назад

    thanks alot man