Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
rx-combine-latest-start-undefined
Advanced tools
Another convenient flavor of Rx.Observable.combineLatest
combineLatestStartUndefined
for RxJSnpm install rx-combine-latest-start-undefined
This function has the exact same usage as Rx.Observable.combineLatest,
including the ability to use a resultSelector
function
The example below is a variation on the example at staltz/combineLatestObj.
Given these observables:
const a$ = Rx.Observable.interval(50).share();
const b$ = Rx.Observable.just('Boston').delay(125).share();
const c$ = Rx.Observable.just('Colorado').delay(200).share();
Makes an observable which does not wait until all input observables have had
an onNext event before emitting. This version emits immediately with
undefined
placeholder values until the next emission from the observable.
This can be useful for situations where you want to see data as soon as
it comes in from any of the observables, and are willing to manage the undefined
inputs in your app code.
import combineLatestStartUndefined from 'rx-combine-latest-start-undefined';
const state$ = combineLatestStartUndefined(a$, b$, c$).take(6);
// or const state$ = combineLatestStartUndefined({[a$, b$, c$]).take(6);
state$.subscribe(x => console.dir(x));
// Time 0: [undefined, undefined, undefined]
// Time 50: [0, undefined, undefined]
// Time 100: [1, undefined, undefined]
// Time 125: [1, 'Boston', undefined]
// Time 150: [2, 'Boston', undefined]
// Time 200: [2, 'Boston', 'Colorado']
FAQs
Another convenient flavor of Rx.Observable.combineLatest
The npm package rx-combine-latest-start-undefined receives a total of 4 weekly downloads. As such, rx-combine-latest-start-undefined popularity was classified as not popular.
We found that rx-combine-latest-start-undefined demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.