Skip to content

Latest commit

 

History

History
282 lines (232 loc) · 18.3 KB

rxjs.md

File metadata and controls

282 lines (232 loc) · 18.3 KB

Bookmarks tagged [rxjs]

https://angular.io/guide/rx-library

Reactive programming is an asynchronous programming paradigm concerned with data streams and the propagation of change (Wikipedia). RxJS (Reactive Extensions for JavaScript) is a library for reactive ...


https://www.syntaxsuccess.com/viewarticle/caching-with-rxjs-observables-in-angular-2.0

Simple caching with observables and publishReplay(1) and refCount


https://blog.angular-university.io/rxjs-error-handling/

Error handling is an essential part of RxJs, as we will need it in just about any reactive program that we write.

Error handling in RxJS is likely not as well understood as other parts of the library...


https://blog.angular-university.io/angular-2-application-architecture-building-applications-using-rx...

In this post, we are going to walk through how Angular applications can be built in a Functional Reactive style using the RxJs library that is part of Angular. We will go over the following topics:

*...


https://egghead.io/lessons/rxjs-aggregating-streams-with-reduce-and-scan-using-rxjs

What is the RxJS equivalent of Array reduce? What if I want to emit my reduced or aggregated value at each event? This brief tutorial covers Observable operators reduce() and scan(), their differences...


https://blog.angular-university.io/functional-reactive-programming-for-angular-2-developers-rxjs-and...

In this post, we are going to go over the concept of Functional Reactive Programming from the point of view of an Angular developer. Following topics are covered:


https://blog.angular-university.io/angular-2-rxjs-common-pitfalls/

These are 3 situations that we can come across while building Angular apps using RxJs. We are going to go over why the issue happens and how to fix it


https://coryrylan.com/blog/angular-multiple-http-requests-with-rxjs

A typical pattern we run into with single page apps is to gather up data from multiple API endpoints and then display the gathered data to the user. Fetching numerous asynchronous requests and managin...


https://www.ngxs.io/

NGXS is a state management pattern + library for Angular. It acts as a single source of truth for your application's state, providing simple rules for predictable state mutations.

NGXS is modeled aft...


https://stackoverflow.com/questions/55262108/material-autocomplete-startwith-operator

Ignore the generic type <string | User> and focus on the value of the passed in parameter. The value that is actually passed to startWith in your code is an empty string ''.

why would you want it to ...


https://ncjamieson.com/understanding-lettable-operators/

An update: lettable operators are now officially pipeable operators.

Lettable operators offer a new way of composing observable chains and they have advantages for both application developers and lib...

  • 📆 published on: 2017-09-26
  • tags: rxjs

https://medium.com/angular-in-depth/reading-the-rxjs-6-sources-map-and-pipe-94d51fec71c2

Welcome back. Today I’m very excited, because I’m finally going to dig into how pipe is implemented in RxJS. This article will start with an overview of how map and pipe work, and then will delve into...


https://medium.com/@benlesh/rxjs-dont-unsubscribe-6753ed4fda87

Well… okay, just don’t unsubscribe quite so much.

I’m often enlisted to help someone debug an issue with their RxJS code or figure out how to structure an app that is composing a lot of async with Rx...


https://blog.angularindepth.com/when-to-subscribe-a83332ae053

When should you subscribe? The answer to that question is, “Only when you absolutely have to.” Because (among other reasons) if you don’t subscribe, you don’t have to unsubscribe.

So, when do you abs...


http://xgrommx.github.io/rx-book

Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.


https://blog.thoughtram.io/angular/2018/03/05/advanced-caching-with-rxjs.html

When building web applications, performance should always be a top priority. One very efficient way to optimize the performance of our applications and improve the experience of our site is to use cac...


https://www.learnrxjs.io/

Clear examples, explanations, and resources for RxJS.


https://blog.angular-university.io/rxjs-higher-order-mapping/

So that is what we will be doing in this post, we are going to learn in a logical order the concat, merge, switch and exhaust strategies and their corresponding mapping operators: concatMap, mergeMap,...


https://blog.angularindepth.com/rxjs-understanding-the-publish-and-share-operators-16ea2f446635

An in-depth look at the multicast, publish and share operators

  • 📆 published on: 2017-08-23
  • tags: rxjs

https://medium.com/@benlesh/on-the-subject-of-subjects-in-rxjs-2b08b7198b93

Subjects in RxJS are often misunderstood. Because they allow you to imperatively push values into an observable stream, people tend to abuse Subjects when they’re not quite sure how to make an Observa...


https://medium.com/@benlesh/hot-vs-cold-observables-f8094ed53339

You want a HOT observable when you don’t want to create your producer over and over again.

  • COLD is when your observable creates the producer
  • HOT is when your observable closes over the producer
  • 📆 published on: 2016-03-29
  • tags: angular, rxjs

https://stackoverflow.com/questions/39494058/behaviorsubject-vs-observable

BehaviorSubject is a type of subject, a subject is a special type of observable so you can subscribe to messages like any other observable. The unique features of BehaviorSubject are:

  • It needs a...
  • 📆 published on: 2016-11-01
  • tags: angular, rxjs

http://xgrommx.github.io/rx-book/

Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.


https://blog.angularindepth.com/learn-to-combine-rxjs-sequences-with-super-intuitive-interactive-dia...

Sequence composition is a technique that enables you to create complex queries across multiple data sources by combing relevant streams into one. RxJs provides a variety of operators that can help you...

  • 📆 published on: 2017-12-14
  • tags: rxjs

https://www.learnrxjs.io/operators/combination/forkjoin.html

This operator is best used when you have a group of observables and only care about the final emitted value of each. One common use case for this is if you wish to issue multiple requests on page load...


https://namitamalik.github.io/Map-vs-FlatMap/

This blog discusses difference between Map and FlatMap in RxJS.


http://blog.angular-university.io/rxjs-switchmap-operator/

Although RxJs has a large number of operators, in practice we end up using a relatively small number of them.

And right after the most familiar operators that are also available in arrays (like map, ...


https://youtu.be/R62iQvZ0bdQ?t=1633

Talk on RxJs and Observables by @BenLesh. Explanation of the difference between the merge, concat and switch strategies for combining Observables.


https://gist.github.com/staltz/868e7e9bc2a7b8c1f754

The hardest part of the learning journey is thinking in Reactive. It's a lot about letting go of old imperative and stateful habits of typical programming, and forcing your brain to work in a differen...


http://reactivex.io/documentation/observable.html

In ReactiveX an observer subscribes to an Observable. Then that observer reacts to whatever item or sequence of items the Observable emits. This pattern facilitates concurrent operations because...


https://scotch.io/tutorials/3-ways-to-pass-async-data-to-angular-2-child-components

The three ways :

  1. Use ngIf
  2. Use ngOnChanges
  3. Use RxJs BehaviorSubject

http://staltz.com/how-to-debug-rxjs-code.html

  • First, draw the dependency graph.
  • Observables with two or more outgoing arrows in the dependency graph usually need to be hot.
  • To debug with the console log, use .do(), not .subscribe().
  • D...
  • tags: rxjs, debugging

http://rxmarbles.com/

A webapp for experimenting with diagrams of Rx Observables, for learning purposes.


https://youtu.be/3LKMwkuK0ZE


https://blog.thoughtram.io/angular/2016/06/16/cold-vs-hot-observables.html

Helps with simple examples understand the nature of hot and cold observables.

TABLE OF CONTENTS

  • Hot vs Cold Observables
  • Making Cold Observables Hot
  • Understanding publish, refCount and ...
  • tags: angular, observable, rxjs

http://blog.angular-university.io/angular-2-application-architecture-building-applications-using-rxj...

In this post, we are going to walk through how Angular 2 applications can be built in a Functional Reactive style using the RxJs library that is part of Angular 2 (see Managing State in Angular 2 Appl...


http://victorsavkin.com/post/137821436516/managing-state-in-angular-2-applications

Managing application state is a hard problem. You need to coordinate between multiple backends, web workers, and UI components. Patterns like Redux and Flux are designed to address this problem by mak...