Learn React #13 - Introduction to Redux Saga and getting data from APIs

  Рет қаралды 110,118

Anthony Sistilli

Anthony Sistilli

Күн бұрын

Пікірлер: 170
@dannyarcher6370
@dannyarcher6370 Жыл бұрын
Dude, I just want to say that you are an incredibly talented instructor.
@secret786786
@secret786786 3 жыл бұрын
One of the best guide to Redux-Saga.
@XiagraBalls
@XiagraBalls Жыл бұрын
Possibly one of the best explainers I've come across yet. This actually might help me solve a headache I was having with complex state management issues this week.
@ashwinireact
@ashwinireact Жыл бұрын
❤best video, I wasted 2 days watching some dumb tutorial about redux-saga and never understood the flow. Now the flow of redux-action -> watcher saga -> handler function -> request function -> handler function -> yield put to reducers is clear. Thanks a ton, man!
@judyl6325
@judyl6325 3 жыл бұрын
Hitting an API and walking through the redux saga flow was exactly what I needed, thank you for making this video!
@kumailn7662
@kumailn7662 2 жыл бұрын
your english your way of explaining all makes it so simple to understand
@tyronemguni3895
@tyronemguni3895 3 жыл бұрын
Underrated. Please don't stop, this is brilliant
@stavan.sanghvi
@stavan.sanghvi 2 жыл бұрын
This tutorial of Redux Saga was what I needed! So clear explanation of the flow and the concepts. Thanks Man, Keep it Up!
@kumailn7662
@kumailn7662 2 жыл бұрын
correct
@Jay-jo5dm
@Jay-jo5dm 3 жыл бұрын
This one was tough but it's just because I'm bad. Eventually got the idea after rewinding many times. Cheers Anthony
@ucuphis
@ucuphis 2 жыл бұрын
I guess this is the most comprehensible redux-saga explanation I've ever seen, thanks man.
@AnthonySistilli
@AnthonySistilli 2 жыл бұрын
@ansh_shah__16
@ansh_shah__16 Жыл бұрын
Perfect explanation of redux-saga concept with proper example. Thank you so much @ReactJS Hub👍
@상훈정-n3k
@상훈정-n3k 2 жыл бұрын
In my case, you are my best teacher ever. I liked your explanation and your videos about react and redux things. Thanks a lot
@gerrybaird126
@gerrybaird126 3 жыл бұрын
This was great, I really enjoyed building the app to use the mock API. I find that understanding the material becomes so much easier if you code along or copy from the code sandbox into your own working code. Tracing the flow of execution from the initial action through the reducer/saga/handler/request helps make the concepts much clearer. Thank you!
@wishmeheaven
@wishmeheaven 8 ай бұрын
Thank you for everything. Nothing is being taken for granted, And I wish you'll keep uploading much much more content. With that being said, 28:36 - most of the time your explanations are clear, but.. What does it mean: "YOU CAN go ahead to add that to the useEffect" ? Or "YOU MUST"? 28:40 - "It is not going to make a difference because this dispatch is not going to change any time soon" - Mmm... What?! Is that a valid reason to add dependency? -What a vague explanation. AND WHEN it will change, it will get updated and trigger an infinite loop?? - no? why not? Other than that, another great tutorial.. (..although you were mentioned the word "Channel" in the cotext of Saga without going any further, and I hope the following videos will include this topic..)
@rajkumar-oy3ni
@rajkumar-oy3ni 3 жыл бұрын
I watched lot of videos to understand Redux saga concept but did not get it, your videos are excellent and I got clear understanding on this and also I like the way you explain
@Vasko10100
@Vasko10100 3 жыл бұрын
Please, just please, do not stop with these tutorials about React!!. As i said before, THIS IS PURE GOLD! Do you have any paid content so i can buy and support you ?
@AnthonySistilli
@AnthonySistilli 3 жыл бұрын
Thank you so much! Glad you like the tutorials :) I don't have any paid content haha! Just a like and a comment is good enough for me
@franciscocabello3214
@franciscocabello3214 3 жыл бұрын
@@AnthonySistilli You should have like a voluntary contribution section
@25decastro
@25decastro 3 жыл бұрын
Your explanation of how redux-saga is crystal clear. Thank you!
@NandiOnTheWheels
@NandiOnTheWheels 3 жыл бұрын
one of the best video now i found on saga on youtube
@ant-dep
@ant-dep 2 жыл бұрын
Just thank you for this value and this clear explanation of what Saga is and how we can set it up !
@flynn_coder
@flynn_coder 2 жыл бұрын
Anthony can not thank you enough for making everything so easy to follow and apply, thanks man.
@azzazkhansiddiqui
@azzazkhansiddiqui 3 жыл бұрын
Thank you soooooo much! You cleared my concept and now I'm longer afraid of the saga and also thanks for the DUCK pattern it made things a lot easier. Thanks again for saving my day.
@TwistedFate123
@TwistedFate123 3 жыл бұрын
Everyone should watch this guy's videos! Its so easy to understand for beginners
@TheBhumbak
@TheBhumbak 3 жыл бұрын
i love whole playlist but this become really complicated here, went over my head
@hollyho6003
@hollyho6003 3 жыл бұрын
Glad i'm not the only one...this video was super confusing to me but the other videos made sense to me
@ashwanidwivedi1832
@ashwanidwivedi1832 3 жыл бұрын
good explanation of react redux saga And in the end your way of explaining the complete code in seconds was simply amazing
@dupre7416
@dupre7416 2 жыл бұрын
This is a great video Anthony. It's a few years old but it's still helpful.
@michaeltrevino4425
@michaeltrevino4425 3 жыл бұрын
Thank you for the tutorials, I teach and I needed to make sure that I understood everything again before I taught it (I forget many things so I have to make sure I am up to it date) and this was the perfect refresher! I should just refer my students to this channel instead lol.
@avranju9714
@avranju9714 2 жыл бұрын
Thank you, this is the best saga video anywhere.
@ozanulutas3334
@ozanulutas3334 2 жыл бұрын
Thank you. Very beginner friendly and clear explanation.
@sarthakshah2236
@sarthakshah2236 3 жыл бұрын
big thanks brother...very nice tutorial...please make a video on mobx react with typescript
@CorentinDesfarges
@CorentinDesfarges 3 жыл бұрын
Certainly the very best video I've ever seen about redux stuff. Thank you very much :)
@DebjitMajumdar
@DebjitMajumdar 3 жыл бұрын
It pains me to tell you Anthony that the video was complicated. It felt like I am repeating steps. Its a contructive criticism, and I feel I need to learn more and come back to this video.
@vamshidharrentala5134
@vamshidharrentala5134 3 жыл бұрын
Thank you so much Anthony Sistilli,This tutorial made my day.
@saharebrahimi7322
@saharebrahimi7322 3 жыл бұрын
That is actually all I need to know about saga. that was great, you are the best!
@milad8436
@milad8436 3 жыл бұрын
This channel helped me a lot solving problems which were in my mind. Thank you so much bro
@isaac-izo-alwar7167
@isaac-izo-alwar7167 3 жыл бұрын
Top Marks !!!, best sagas video anywhere online IMO !!!
@sebastianbaciu1366
@sebastianbaciu1366 Жыл бұрын
This was a really good explanation. Thank you for the informations
@AmitK
@AmitK 2 жыл бұрын
I really enjoyed your previous video (#12) on redux with duck pattern , however, it was more easier to understand react saga if you would have tried duck pattern with redux-saga too , I did not follow your pattern (splitting in many files), first I simply put whole things like handler , watcher everything into configurestore file and later moved into one file only , then it became much easier to me.
@MuhammadBilal-hq3xn
@MuhammadBilal-hq3xn 2 жыл бұрын
You are love understand saga for the first time ♥️
@dhunsworth
@dhunsworth 3 жыл бұрын
Super helpful! Great explanations on the takeEvery, takeLatest etc...Thanks!
@joeygarcia7826
@joeygarcia7826 3 жыл бұрын
If I could give Anthony a standing ovation, I would!
@lightbinger
@lightbinger 3 жыл бұрын
could you?
@baremetals
@baremetals 3 жыл бұрын
this is exactly what I needed you are legend my guy!!!!!
@Oops-404
@Oops-404 2 жыл бұрын
This was great and helpful 😍, Keep going bro Thanks
@sadhucat4476
@sadhucat4476 3 жыл бұрын
I would really appreciate a video which shows how saga simplifies things over axios or other methods. I take in faith that there is some point, but all I can see at present are overcomplications and redundancies. Redux itself serves a valuable purpose, but similarly I still don't understand the reasons for what seems to me an overcomplicated structure.
@isaac-izo-alwar7167
@isaac-izo-alwar7167 3 жыл бұрын
It's always your choice as a developer, how to write your code.
@brodiejake2149
@brodiejake2149 3 жыл бұрын
you all prolly dont care at all but does any of you know a tool to log back into an Instagram account? I stupidly forgot the login password. I love any assistance you can offer me.
@kaleljon3439
@kaleljon3439 3 жыл бұрын
@Brodie Jake instablaster =)
@brodiejake2149
@brodiejake2149 3 жыл бұрын
@Kalel Jon I really appreciate your reply. I found the site on google and I'm in the hacking process atm. Looks like it's gonna take a while so I will get back to you later with my results.
@brodiejake2149
@brodiejake2149 3 жыл бұрын
@Kalel Jon It worked and I actually got access to my account again. I'm so happy! Thanks so much you really help me out!
@fatboy2193
@fatboy2193 3 жыл бұрын
Another amazing video. Thank you Anthony and keep up the good work!!!
@ahmedtohamy3258
@ahmedtohamy3258 3 жыл бұрын
Hi buddy, please don't take my comment as a negative comment, I like your videos and you really simplify a lot of things, but i did the same same thing exactly using CONTEXT API in just few lines of code! why we really need to use Redux-Saga ? your answer will be so helpful to highlight the importance or the best use cases for each tool. I'm not against Redux, but i'm against the unneeded complicity, did you get my point ?
@ahmedtohamy3258
@ahmedtohamy3258 3 жыл бұрын
Thanks buddy , but i'm Still waiting your answer about my question , your opinion is so important for me :)
@AnthonySistilli
@AnthonySistilli 3 жыл бұрын
Great question! The context api is a very useful tool, and I would suggest using it whenever possible! Redux + Redux saga is more meant for bigger applications, ones where you're making over 20 API calls to different endpoints, and you're keeping a ton of data in different reducers. Overall, it's an architecture meant for bigger enterprise applications, where react's context gets too cluttered and disorganized to handle.
@ahmedtohamy3258
@ahmedtohamy3258 3 жыл бұрын
@@AnthonySistilli Thanks Buddy, i heard also that Context API effects the performance, is this true ?
@terencetcf
@terencetcf 3 жыл бұрын
tbh... all these redux solutions (saga, thunk, observable) were very useful during the earlier days before async/await and React Hook were introduced. Then things become simpler later on after more and more hooks introduced. And the introduction of ContextAPI give us another choice of managing state in your application, which you can organise your code base in a way cleaner (less boilerplate code), though that doesn't mean it will replace redux.
@saipavanreddy5272
@saipavanreddy5272 2 жыл бұрын
Thanks a lot , the video was really great and your explanation is so clear.
@bendan7ful
@bendan7ful Жыл бұрын
I really enjoyed watching this video, thanks
@12345charliebrown
@12345charliebrown Жыл бұрын
So to break it down Saga is a middleware that handles async data before storing state into the redux store. I'm still trying to get my head around reducers. I'm guessing I should jump to #16 as it includes the latest Redux toolkit. I'm determined to learn this even on Christmas Day!! Edit: this tutorial is outdated. Thunk is included with RTK. Still following along though and see if I can add all this into RTK instead
@gabitavaresoie
@gabitavaresoie 3 жыл бұрын
Hello Anthony! This video helped me a lot, thank you! ☺️
@Velaldo-nw7ve
@Velaldo-nw7ve 2 жыл бұрын
Wow!. You explained it really well, Thanks.
@eliiehachem7010
@eliiehachem7010 3 жыл бұрын
nice informative video man I only understood it from your video so far ^^
@aitfrihaZaid
@aitfrihaZaid 2 жыл бұрын
thanks for this explanation. i have only one question in the generator function after the first yield finished who made .next() to your function to resum the work ? because there an other yield for put. thanks so mutch
@jaroslavgrejtak2484
@jaroslavgrejtak2484 2 жыл бұрын
Really good job, Anthony! Thanks!
@shoebjoarder
@shoebjoarder 3 жыл бұрын
damn just finished the video and now i have to wait for next week again...
@jimmysweeney7425
@jimmysweeney7425 2 жыл бұрын
exactly what I needed. Thank you so much
@samspade6709
@samspade6709 3 жыл бұрын
Great video Anthony. It was really helpful. Thanks a lot.
@igniz87
@igniz87 3 жыл бұрын
Thanks for this A+ Tutorial on Redux Saga
@DanielNistrean
@DanielNistrean 2 жыл бұрын
I'd suggest having different names for js files, like userRequest, userHandler. In a big project with a more complex file structure having files with the same name will get confusing fast.
@RakeshKumar-zj4hu
@RakeshKumar-zj4hu 3 жыл бұрын
Hey Antony, I’m using redux tool kit, and as you already know it uses thunk. I know you advocate saga, but can you tell me what sagas brings more to the table? Or will I be good to go with think.
@RakeshKumar-zj4hu
@RakeshKumar-zj4hu 3 жыл бұрын
And of course I miss your course, today is learning day, Monday.
@sergiob3698
@sergiob3698 3 жыл бұрын
Hi Anthony very clear. I got a question for you, it looks very powerful but also more complicated, I understand that Redux simplifies the state management, but could we fetch data directly from the UI Component instead of adding Redux Saga? if so, What´s the trade off?
@AnthonySistilli
@AnthonySistilli 3 жыл бұрын
Yes! Some of my videos on useEffect covers how to do that. The biggest drawback is in more complex application with data being shared through multiple components, it becomes hard to manage how they get stored in redux without redux saga. Also Redux Saga can handle many things like snackbars and dealing with 400 errors as well as successful calls in general.
@sergiob3698
@sergiob3698 3 жыл бұрын
@@AnthonySistilli OK, got it. Probably when working on more complex projects, makes sense the overhead. Thank you very much.
@dawidgaleziewski3335
@dawidgaleziewski3335 3 жыл бұрын
amazing. You have a gift for explaining stuff. Thank you for this
@roshansebastian1862
@roshansebastian1862 Жыл бұрын
Thank you, explained very well.
3 жыл бұрын
Man, I have watched a few other videos on sagas and I was dumber and dumber after each one. You nailed it though, great explaining skills, kudos!
@octavian3033
@octavian3033 3 жыл бұрын
This is my first time hearing about redux saga and it does sound a bit complicated. Hoping I'll understand it better in time.
@malamhari_
@malamhari_ 2 жыл бұрын
Great explanations, thank you sir
@gururajmoger8649
@gururajmoger8649 3 жыл бұрын
Pls explain selector... Also pls make some task oriented tutorial.. so that everyone ll like to subscribe and u ll get more views for sure.. bcoz it helps a lot to employees to work on user stories.. no one channel is doing like this.. For ex- there is api based on node js. Companies ll tell to work on saga, selector, think, context api or whatever to complete the requirements..
@nuzulazamzami2626
@nuzulazamzami2626 2 жыл бұрын
great course, thanks man!
@yassinerassy6840
@yassinerassy6840 2 жыл бұрын
thank you so much for this amazing tutorial
@albiummid
@albiummid 3 жыл бұрын
Thank you so much for the tutorial.
@juliasankevich3728
@juliasankevich3728 2 жыл бұрын
Thank you! You actually helped me a lot
@danmorettin
@danmorettin 3 жыл бұрын
Anthony your tutorials are great. Very helpful. Favor to ask though: can you do some videos on react testing? Say with mocha or jest.
@shahzadasalman8461
@shahzadasalman8461 3 жыл бұрын
Thanks for the video mate 😊
@user-mk8he1ex3m
@user-mk8he1ex3m 3 жыл бұрын
Amazing vid! Thanks so much!
@evanfang6573
@evanfang6573 2 жыл бұрын
Great tutorial, thanks!
@hos7012
@hos7012 3 жыл бұрын
@Anthony what theme you’re using , great font
@ddikodroid
@ddikodroid 3 жыл бұрын
thank you bro! your explanation is enlighten me
@MrVishal5000
@MrVishal5000 2 жыл бұрын
Good job Anthony !!
@cristian1868
@cristian1868 2 жыл бұрын
Hello, Anthony. Thanks so much for this tutorial and I have a question. When I'm incrementing / decrementing it's logging in the console that user object from the API call that we've made. Can you tell me why?
@deepuabraham9043
@deepuabraham9043 3 жыл бұрын
Thank you for the video !! It would be helpful if you can add some kind of animation to explain the redux saga flow...
@shaikgouse339
@shaikgouse339 3 жыл бұрын
Thank you, The video is very helpful
@NISHANTH1223
@NISHANTH1223 3 жыл бұрын
Nice explanation in the video
@TheHimu30
@TheHimu30 3 жыл бұрын
Great explanation
@zonsubba3654
@zonsubba3654 2 жыл бұрын
Thanks for your contribution.
@sinagolestanirad2722
@sinagolestanirad2722 3 жыл бұрын
great video BUT for learning purposes that would be much better if you had NOT put every file in separate folders and kinda do it the same way that saga does it in its document, this way when new students can see every related things all in one place they can absorb it faster, and THEN, of course, you can add another 5-10 minutes at the end and show how it could be done by separating folders and now students can learn the folder pattern as well,
@maciekdzikdrums
@maciekdzikdrums 3 жыл бұрын
Super good buddy! Thank yOU !!!
@avnishjayaswal
@avnishjayaswal 3 жыл бұрын
Too Good thanks Anthony Sistilli
@FreelancerGoranCirkovic
@FreelancerGoranCirkovic 3 жыл бұрын
Great video, thank you!
@KamBha
@KamBha 3 жыл бұрын
In the 31:30 mark you mention about creating a separate threads. I assume that this in reference to the browser creating a new thread for the ajax request and not that redux saga will actually create a new thread (ie use web workers)? I thought that multi threading is not something you can code in a browser unless you use web workers.
@dasher964
@dasher964 3 жыл бұрын
Dumbt it down pls
@raj_gohil07
@raj_gohil07 Жыл бұрын
Great video thanks.
@armanalighanbari7002
@armanalighanbari7002 2 жыл бұрын
thanks for learninig redux saga
@hos7012
@hos7012 3 жыл бұрын
best explanation
@alishahzil721
@alishahzil721 3 жыл бұрын
Anthony can you help us to create Material-UI Open Drawer Underneath AppBar?
@amitweiss3727
@amitweiss3727 3 жыл бұрын
Great bro! Thanks
@mishsiwela1922
@mishsiwela1922 2 жыл бұрын
Thanks Anthony!!!
@maksymdudyk1718
@maksymdudyk1718 3 жыл бұрын
Awesome, thank you!
@titiamin3155
@titiamin3155 3 жыл бұрын
U made my day
@janakarmuthuraj259
@janakarmuthuraj259 2 жыл бұрын
It would be better if you can make a video explaining redux-toolkit.js with redux saga/ thunk middlewares.
@eliagomez4832
@eliagomez4832 2 жыл бұрын
muy buen video! :)
@sayeesreeram
@sayeesreeram 2 жыл бұрын
Great Video :)
@kumailn7662
@kumailn7662 2 жыл бұрын
superb!!
Learn React #12: Redux & React Intro - Redux Crash Course
41:10
Anthony Sistilli
Рет қаралды 40 М.
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 8 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,3 МЛН
Synyptas 4 | Жігіттер сынып қалды| 3 Bolim
19:27
kak budto
Рет қаралды 1,3 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 136 МЛН
React Redux (with Hooks) Crash Course
48:00
Laith Academy
Рет қаралды 209 М.
Goodbye, useEffect - David Khourshid
29:59
BeJS
Рет қаралды 501 М.
Pear.ai situation is crazy
7:26
Anthony Sistilli
Рет қаралды 38 М.
Understanding Redux Saga with a simple API call Tutorial
19:12
Learn Redux Toolkit in under 1 hour
58:10
Hitesh Choudhary
Рет қаралды 143 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 63 М.
Redux - Complete Tutorial (with Redux Toolkit)
37:01
Cosden Solutions
Рет қаралды 222 М.
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 8 МЛН