https://ignaciochavez.com/how-redux-puts-middleware-together/
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
Â
 library for composing asynchronous and
event-based programs by using observable sequences
@elibelly
@elibelly
@elibelly
Â
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
map
flatMap
concatMap
switchMap
exhaustMap
@elibelly
When used properly RxJS can be more declarative and concise
Â
raises level of abstraction
Â
focus on the "logic"
@elibelly
@elibelly
highly interactive UI or
UI events linked to data events
Â
web sockets
Â
complex, cancellable ajax/fetch
Â
animations / game logic
@elibelly
@elibelly
Action
Action
Action
"Â Compose and cancel async actions to create side effects and more."
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
@elibelly
(it may stick around..)
@elibelly
Â
switchMap: every time a new action of the same type occurs, if the first one is pending it will be aborted
exhaustMap: "opposite switch map" new actions get ignored while the original action is pending
concatMap: no actions get ignored but ordering is ensured
mergeMap (flatMap): no actions get ignored but run in parallel so order not guaranteed
Â
Â
@elibelly
Â
@elibelly
Â
@elibelly
@elibelly
@elibelly
use
@elibelly