Skip to main content
1 vote
1 answer
39 views

Data not being displayed on template but data is fetched

I am trying to display data using rxResource. However, data returned is always undefined. However, inspecting the network tabs shows the data is indeed being fetched and I'm just doing something wrong ...
kibet's user avatar
  • 411
2 votes
1 answer
43 views

How do I return two http requests sequentially in rxjs and use data from first in second call?

I've written a http function that works using switch map to get the value from one http request and use it as a parameter in the second, but how do I return not only the final http request but also ...
bradrice's user avatar
  • 1,797
1 vote
1 answer
84 views

Retry HTTP request

I have Angular service which is used in the Angular pipe. The job of that service is to do a HTTP request and fetch translations. Idea is to have a pipe which returns a Observable that only first ...
AlexBor's user avatar
  • 315
0 votes
1 answer
67 views

How do I set an empty array as default value in toSignal?

I have a DataHandler service that calls a database service and returns the value to the calling component. The database service returns an observable of an array, while I'd like the data handler to ...
Otto Abnormalverbraucher's user avatar
0 votes
3 answers
91 views

Filter observable without triggering HTTP request

I populate a grid with the following line of code: this.gridData$ = this.userService.getUsers(); and this is the corresponding HTML: [kendoGridBinding]="(gridData$ | async)!" It works as ...
derstauner's user avatar
  • 1,918
0 votes
0 answers
55 views

Why is this RxJS subscription never closed?

I have suspected memory leaks and stale RxJS subscriptions for a while in corporate software. I decided to investigate by writing the snippet below. It's very simple. First, it loads RxJS. Second, it ...
Robin Dos Anjos's user avatar
4 votes
1 answer
59 views

Encapsulate behaviorSubject in a service

I would like to hide the "next" interface of a BehaviorSubject while retaining its other properties, especially the possibility to get last emitted value imperatively. The idea is all state ...
Krzysztof Przybylski's user avatar
1 vote
1 answer
72 views

Angular rxjs, multiple subscriptions with subject and mergeMap

I have a service that notifies that an array of categories has been filled (via a call to an API on the bootstrap of the application). As soon as these categories are ready I have to start a call to ...
berno's user avatar
  • 253
1 vote
0 answers
89 views

Auto login with firebase authentication

I'm looking for a great solution for firebase authentication. I use angular with ngrx and firebase. I made authentication with these technologies but when I tried to implement auto login, it actually ...
Kuba Goch's user avatar
0 votes
1 answer
39 views

How to make Jest catch an exception thrown inside an RxJS Observer?

I have a subscription to an observable, which depending on some validations on the emitted value, an exception should occur. This exception is thrown and I can capture it in the application code, but ...
sartoz's user avatar
  • 348
1 vote
1 answer
52 views

Initial value not displayed on mat-select component using async pipe

I'm trying to use a material select component that gets its values through an Observable with async pipe. template: <mat-form-field> <mat-select value="selectedOption$ | async&...
Watttttt's user avatar
2 votes
1 answer
23 views

Why subject's subscriber keeps consume an error, after the first() operator, if the next emit of this subject was called in the inner tap() operator?

I've found a strange rxjs behavior that keeps bothering me, and I can't even imagine a solution to this problem. I need to create an Observable from Subject that will either emit an error if the ...
someApp's user avatar
  • 65
0 votes
0 answers
38 views

Why is "this" still available in rxjs subscription [duplicate]

Looking to the code below @Component({ ..... }) export class AngularComponent { componentVariable: bool; someMethod(){ this.service.subscribe(x => this.componentVariable = x) ...
Massimo Lavermicocca's user avatar
0 votes
0 answers
31 views

OnInit Block with readCSV subscribe/observable function yields inconsistent results

I have an Angular OnInit block inside my "Dashboard.component" that reads a CSV file and populates a web page. If my webpage is called from my "Home.Component" web page, then the ...
MikeLupo's user avatar
1 vote
2 answers
53 views

How To Combine Responses Using RxJS merge() & from()

I have to make n (user defined) http calls. The URLs are generated programatically from user inputs. Each month must be queried separately, so n depends on the date range the user has selected. In the ...
Kiran's user avatar
  • 98

15 30 50 per page
1
2 3 4 5
1413