rx-injectable-observable
RxJS Observable to which you can inject other Observables.
Utility for Cycle.js framework. By Eryk Napierała.
Installation
npm install rx-injectable-observable
Usage
;; let sum$ = ; sum$; // you can inject dependencies before and after subscriptionsum$; ; // you can also inject stream to itselflet double$ = x$; double$; double$;
Notes
Subscription and injection order doesn't matter, but if nothing was injected to the stream, subscription doesn't initialize anything. When dependencies are injected, but stream was not subscribed yet, nothing happens as well. When subscribed AND injected the first time, stream becomes hot observable - next subscriptions don't receive already emitted values.