RxJS6 is version 6 of Reactive Extensions for JavaScript, with some added changes in websocket, testing and bug fixes.
Questions tagged [rxjs6]
1219 questions
-1
votes
1 answer
After getting the response from post api call , an error is thrown => .pipe is not a function
I am making an api call and expecting a response from it which can be passed to 2nd api call but I am getting an error
ERROR TypeError: this.helperService.getPointIdbyTags(...)[0].pipe is not a function
on line .pipe(switchMap((resarray:any)=>{
TS…

Enthu
- 512
- 2
- 13
- 38
-1
votes
1 answer
Is there a way to subscribe the same value all time without subscribe break?
I am subscribing a value from a reducer, where it will always true. when first time i subscribes it works. but next time it's not. from my research always the value is true if i change value to false then it works fine.
so subscribe expect the…

3gwebtrain
- 14,640
- 25
- 121
- 247
-1
votes
1 answer
How can I filter array with multiple criteria in Angular8 using Observable?
Want to filter array of objects in Angular8 with Observable. Did it with @Pipe but client recommends to use Observable.
I have an array. Need to filter it with 3 different inputs given in the UI.
Done this using the @Pipe like below.
Angular 6 : where getting error module "rxjs/add/operator/map" and another error 'map' does not exist on type 'Observable

Gnik
- 7,120
- 20
- 79
- 129
-1
votes
2 answers
I got an console error, after logged to website in chrome
Am using rxjs 6.3.3 version it throw error on console after logged to webpage. I didn't get any idea to clear this error
at subscribeTo (subscribeTo.js:41)
at subscribeToResult (subscribeToResult.js:11)
at…

Surya Bharathi
- 9
- 4
-1
votes
1 answer
'Argument expression expected' error during ajax call in rxjs
I am getting this error after using api call. I am trying to fetch data from myjson api. Am i doing something wrong with the current implementation or Is there any better way to call the same api.
import { createAction, handleActions } from…

pKay
- 1,832
- 4
- 16
- 23
-1
votes
1 answer
convert rxjs5 operators into rxjs6
i have following code written in rxjs5 and it broke with rxjs6
can some one help me with write in rxjs 6
its failing mergemap receiving groupedObserable which does not have count method and along also filter method does not exist.
list [
{id: '1',…

d-man
- 57,473
- 85
- 212
- 296
-1
votes
2 answers
Changes made in .subscribe() method not reflected out of it or in the template
I am using a Subject to add edit functionality to a basic phonebook app.
The changes that I make to component class variables inside of the subscribe callback are not reflected out of it or in the template.
I have tried the solutions listed in the…

Simran Makhija
- 1
- 1
- 2
-1
votes
1 answer
Angular - How do I unit test a function inside an rxjs 6 operator using jasmine so that it shows up as covered in istanbul?
How do I get the code inside the skipWhile to show as covered by istanbul? I'm using Angular, jasmine and rxjs 6. It can be a completely trivial test as long as the coverage stat shows its covered.
ngOnInit() {
this.claimSubscription =…

user935618
- 65
- 1
- 7
-1
votes
4 answers
RxJS- How to access the value of a BehaviorSubject after operations
Say I have a behavior subject, piped through an operation or two:
const inputNumber = new BehaviorSubject(2);
// The current number can be retrieved with `inputNumber.getValue()`
const numberAfterOperations = inputNumber.pipe(
filter(a => (a+1)…

Eric Vicenti
- 1,928
- 1
- 16
- 16
-1
votes
2 answers
state.getState() is not a function while updating to redux 4
Currently i am working on migration from angular 5 to 6. While updating to redux 4 i am getting error as store.getState() is not a funtion
export interface IAppState {
source1: IEmployee[],
source2: IEmployee[],
}
export type FSAction =…

vikas biradar
- 238
- 1
- 3
- 12
-1
votes
1 answer
EDIT: disregard this question (How to return cold observable before making http call)
I have an angular service something like this:
saveNewUser(user: User): Observable {
if (!user || !user.password) {
return of(false);
}
return this.http.put(this.saveUrl, user).pipe(map((res: Response) => res.ok));
}
I am…

Bubba
- 119
- 1
- 9
-1
votes
4 answers
Angular 6 : where getting error module "rxjs/add/operator/map" and another error 'map' does not exist on type 'Observable'
I am using Angular 6 where I am getting two errors -
ERROR in ./src/app/app/img/img.service.ts
Module not found: Error: Can't resolve 'rxjs/add/operator/map' in '/Users/user/Projects/A4/imageSearch/src/app/app/img'
ERROR in…

Anurag Ranjan
- 242
- 1
- 4
- 14
-2
votes
2 answers
RXJS how to use OR condition
I have two Observables
For example, I am waiting HTTP POST call to come back OR WebSocket call come back so I can continue.
Either call come back I need to verify the information and until certain condition met. Follow example that either one come…

Zeo
- 115
- 1
- 14
-2
votes
2 answers
Angular merge map for one after another http calls
The getDetails() method returns an Details[] and with that array and there is a name property which I am passing to another http call
Details {
name: String;
Details
getDetails()
return this.https.get("/someValue") //this return Details[]…

Subham
- 420
- 3
- 11
- 34
-2
votes
1 answer
How do I write an HttpInterceptor that gets and adds a token?
I'm using Angular 6 and RxJs 6.5.2. I cannot for the life of me figure out the syntax for chaining observables to add an access token to HTTP requests and return the type needed to satisfy the intercept method. I've tried all permutations of…

Jamie Ide
- 48,427
- 16
- 81
- 117