Redux Saga Explained: The redux-saga Tutorial

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • Redux Saga allows for asynchronous behavior and so much more. We will wire up redux-saga and use it to manage the state in our app both synchronously and asynchronously. We will also look at features that make redux saga a truly different type of middleware. Redux saga takes advantage of generators, which we will also cover in this tutorial!
    REDUX SAGA IS A MIDDLEWARE. YOU MUST LEARN REDUX FIRST:
    LEARN REDUX HERE: • Redux and React for Be...
    Redux DevTools Extension: chrome.google....
    *************
    Starter files are in the repository
    github: github.com/asa...
    * open the STARTER FILES folder
    * use the redux-saga folder to code along
    *************
    Previous Lesson: • Redux Thunk in React: ...

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

  • @adityapathania2443
    @adityapathania2443 3 года назад +6

    Hands down the best tutorial to learn redux-saga. Thanks!

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

    It just took 50 mins for you to help us understand redux-saga. Now I can easily work with saga ..Great job. Keep it going :)

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

    This is the holy grail for understanding redux-sanga. cheers!

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

    Absolutely the best redux-saga video out there and I should know, I have seen them all

  • @fares.abuali
    @fares.abuali Год назад +1

    Valuable tutorial! ⭐
    Thank you

  • @user-we9qo4kh2w
    @user-we9qo4kh2w 3 года назад +1

    5 minutes in and Im hooked! This is the best tutorial and thank you for creating this! Hoping for more content soon!

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

    Thank you for the great and enriching tutorial...
    If you'll ever have the motivation to upload another part for this topic,
    I wish it will include an even deeper dive, with other effects, and the concept of "Channel" in Redux Saga.
    But considering your teaching skills, any tutorial will be welcome..

    • @PapaSanto
      @PapaSanto  5 месяцев назад +1

      Thanks watching! I'll look into Channel

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

    This is so good. It should be there on recommendations page in the Redux Saga site.

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

    very clear workflow explanation about the each roles in react ecosystem before saga and after saga, thank you very much!

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

    good job . really great i was looking a course like this for a while .this is the best of all i could find. thank you

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

    here like we learn this things on udemy or on somewhere its to much professional as well as simple thankyou sir for making this video

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

    Thanks for the awesome tutorial! You make Redux-Saga look very easy.

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

    Thanks a lot for the tutorial, it helped me a lot. Everything was so clear and very well explained. Great job Papa, appreciate it !

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

    Everything in one place💕. Great job...

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

    great tutorial, easy to understand, im waiting for your another tutorial

  • @monkeystylle
    @monkeystylle 4 года назад +2

    Thank you for the tutorial..

  • @medusa121
    @medusa121 3 года назад +4

    I love u for this!

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

      I love you too Cosiocosh! Glad it helped

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

    Awesome tutorial ++++++++++++++++++++++

  • @Abhishek-dp5tc
    @Abhishek-dp5tc 3 года назад

    Best
    This is literally the best

  • @user-we9qo4kh2w
    @user-we9qo4kh2w 3 года назад

    This is a great tutorial for redux saga but if it was a real life application, we would just use plain actions and reducers for the cart since we don’t really need to handle any side effects (calling external api, etc) right?

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

    Thanks Sir!

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

    I seriously think actions should've been called as {name: 'ADD_TO_CART', data: item} instead of {type: 'ADD_TO_CART', payload: item} :/. It's like instead of saying my name is Aditya, I would say my type is Aditya as compared to people of type John and type Rob. It's not like there are groupings or subdivisions of ADD_TO_CART, this is a red ADD_TO_CART vs a green ADD_TO_CART; it's just a name for the action.

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

      The redux documents use the key “payload” rather than the key “data”. They also use “type” rather than “name”. There is no difference, and you can use any key you would like.
      But, I suggest you use the naming convention suggested in the docs if you will be working with a team of developers.
      You’ll find this in the following document under the header “Redux Terminology”.
      redux.js.org/tutorials/fundamentals/part-2-concepts-data-flow

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

      @@PapaSanto I know Im just saying redux has named it badly; the difference is bad usage of English; sorry to say, but a lot of devs have poor English. From a dev perspective, name and data are easier to type, since there is so much boilerplate typing of these keywords in this. Bad conventions should be refactored, not accepted.

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

      @@PapaSanto Listen to yourself speak at 1:21 in the video, "Sagas are catching things by their 'type name'". Had it been named correctly, you would've just said "Sagas catch actions by name."

  • @Aman-Verma
    @Aman-Verma 3 года назад +1

    I don't understand how come a function in watcherSaga with two yield statements ran on its own without us doing that function().next() thing?

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

      When yielding in a generator like that, we are just asking the function to await a response before moving to the command

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

    perfect!

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

    Would have been the best but no one knows what's in your reducer because you didn't show what is there in the full tutorial

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

      I did link you the code in your most recent comment. Here’s a link to the playlist incase you’d like to see the code written and explained:
      ruclips.net/p/PL_kocBMOO_TymuwYrOA-Wj2jyp9l9agvb
      Hope it helps

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

    please upload the redux saga files

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

    redux saga code files is not in git repo. Can you add them into git repo.

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

      Hi Truelet. The redux saga starter files should be in the folder “STARTERS” in the git repo that is linked. Let me know if that helps

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

      @@PapaSanto Yes, I have clone the repo but the complete redux-saga code and files unavailable in it. check once at your end. like sagas folder not exists.

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

      @@truelet8219 yep, there is no sagas folder in it

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

    How are you able to do over 50mins tutorials teaching people how to use redux, no one saw how you dispatched your actions nor how your reducer actually looks. Not cool, I just wasted my time here.

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

      A link to the code is in the description. It is shown throughout the series that this video is part of.
      If you’d like to see the code, you can do so here:
      *************
      Starter files are in the repository
      github: github.com/asantono/StateInReact
      * open the STARTER FILES folder
      * use the redux-saga folder to code along
      *************