Causes the next value in the pipe to be skipped after skip$ emits a value. For example:
skip$
source: -1-----2-----3-----4-----5-|skip$: ----0----------0-0----------result: -1-----------3-----------5-| Copy
source: -1-----2-----3-----4-----5-|skip$: ----0----------0-0----------result: -1-----------3-----------5-|
const source = new Subject();const skip$ = new Subject();const result = source.pipe(skipAfter(skip$));source.next(1); // result emits `1`skip$.next();source.next(2); // result does not emitsource.next(3); // result emits `3`skip$.next();skip$.next();source.next(4); // result does not emitsource.next(5); // result emits `5` Copy
const source = new Subject();const skip$ = new Subject();const result = source.pipe(skipAfter(skip$));source.next(1); // result emits `1`skip$.next();source.next(2); // result does not emitsource.next(3); // result emits `3`skip$.next();skip$.next();source.next(4); // result does not emitsource.next(5); // result emits `5`
Causes the next value in the pipe to be skipped after
skip$
emits a value. For example: