You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am relatively a beginner in redux concept and regarding sagas just a day old so apologies in advanced if the questions does not make sense.
I see two threads going on - an effort to implement redux concept using RxJS (seems to be an okay strategy on surface .. however multiple implementation on github) and also create ecosystem of helpers & middleware that are also based on Observable.
redux-saga is an approach to separate the side effects ... in simple words make Actions very simple and not pollute them with call to (async) remote services.This library/middleware requires usage of es6 generator functions.
store-saga also wants to achieve the same functionality however it makes use of RxJS library.
When I look at various code examples, IMHO I found the yield (i.e. generator approach) to be more readable. Again this kind of stuff is subjective. For me chained sequences of observable are bit harder to reason (may be it is for me only and have to use RxJS more ...)
That said, one of the problem with redux-saga are the generators :) as they are making me go through two transpliation steps - first typescript and then babel.
Would appreciate if you could share your opinion on readability of code in two approaches and also provide insight if RxJS approach is more performant or less performant than that of redux-saga.
Regards & thanks
Kapil
The text was updated successfully, but these errors were encountered:
Hi,
I am relatively a beginner in redux concept and regarding sagas just a day old so apologies in advanced if the questions does not make sense.
I see two threads going on - an effort to implement redux concept using RxJS (seems to be an okay strategy on surface .. however multiple implementation on github) and also create ecosystem of helpers & middleware that are also based on Observable.
redux-saga is an approach to separate the side effects ... in simple words make Actions very simple and not pollute them with call to (async) remote services.This library/middleware requires usage of es6 generator functions.
store-saga also wants to achieve the same functionality however it makes use of RxJS library.
When I look at various code examples, IMHO I found the yield (i.e. generator approach) to be more readable. Again this kind of stuff is subjective. For me chained sequences of observable are bit harder to reason (may be it is for me only and have to use RxJS more ...)
That said, one of the problem with redux-saga are the generators :) as they are making me go through two transpliation steps - first typescript and then babel.
Would appreciate if you could share your opinion on readability of code in two approaches and also provide insight if RxJS approach is more performant or less performant than that of redux-saga.
Regards & thanks
Kapil
The text was updated successfully, but these errors were encountered: