Understanding Generator Functions & Using Redux Saga

preview_player
Показать описание

In the first half of the video, Omer walks us through generator functions and their use cases. He discusses how generator functions can be paused and re-started, how to use the yield keyword, and how to iterate through a generator function with example code.

In the second half, Omer discusses a redux middleware library known as redux-saga, which takes advantage of generator functions. He helps us understand the main benefits of using redux-saga, which include a synchronous looking workflow, complex layering of actions, and isolation of side effects.
Рекомендации по теме
Комментарии
Автор

Much better, useful and concise than redux-saga documentation. Thanks a lot.

sivach
Автор

So the benefits over thunks is that it isolates side-effects away from actions so your actions become easier to test? Downside is you need to get that generator functions concept.

Yetipfote
Автор

To the point and no bs! Great presentation!

hasnainabbasdilawar
Автор

can you please share the deck used in this video, this was a very clean explanation.

tusharsinghal
Автор

This is a great explanation of how Redux-Saga works. Great presentation.

steverogers
Автор

One of the best explanations of saga, Thank you!!!

rediettadesse
Автор

Great presentation. To the point and very very clear. Thank you.

santosharakere
Автор

Thanks a lot for this explanation. I have only one question in generator function when the first yield finish who call the second yield put ? i think we must have .next() some where

aitfrihaZaid
Автор

Crazy enough.... but this still is the best explanation of sagas ... and btw generators also .. yield* with the asterisk I even never saw in practice

RealEstateD
Автор

thank you, your presentation really makes my day 😀

NguyenNguyen-theo
Автор

Why not to use async/await? These generators in saga makes code unreadable

Faaaaaaaaaaaaz
Автор

one of the clearest explanation ever. thank you so much!

agacini
Автор

Does saga run on separate thread (web worker) or the same main thread?

subeshbhandari
Автор

Good presentation. I am not completely sold though. Most of the points he makes can be covered by using async/await in thunks.

vinzbrain
Автор

Very nice explanation without not needed complexity. Thanks

mmsikoras
Автор

The best resource on redux-saga so far

Abdullahtariq
Автор

Can someone please tell me how yield select and yield fork works?? +FullStack Academy

vishvajeetsingh
Автор

Question for anyone able to answer: Can you use Saga (just Saga) with React's Context API? (the Context API is another way to manage state instead of using Redux)

vanesaflores
Автор

Agree with the guys below me, helped me too, I just hope I will be able to implement it into a React Native project now :D I couldn't find any docs on that, unfortunately

effeKtSVK
Автор

This is a fantastic resource. Thank you!!!

SteveSonoa