Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
20 views

Angular 18 error did not render in 30 seconds on consume apollo

i discovered an error using Angular 18 SSR trying to control error response from grapqhl-apollo, the server method return error after 30 seconds and from angular client with the observable i must only ...
Dr oscar's user avatar
  • 407
1 vote
2 answers
52 views

Angular Observable firing twice, first one empty

I have a call in the constructor of a component to select an account (the store.dispatch is in ngOnInit) and it seems to emit two values, one empty, the next successful. The console.log in the code ...
shamusschubert's user avatar
0 votes
3 answers
28 views

Property 'results' does not exist on type 'HttpEvent<MovieResponse>'. TypeScript Error

I'm currently using this TMDB endpoint in my Angular 18 application and setting it to a variable. This is how it looks: private trendingMovies$ = this.http.get<MovieResponse>(${this.apiUrl}...
James's user avatar
  • 83
2 votes
1 answer
28 views

How to use the retry from Rxjs to my await function?

I have to return an await function from my code block, now when the await function is called and failed on the first try, I want to retry it again and if it failed on the second time.. I will show an ...
Daniiiii's user avatar
1 vote
2 answers
38 views

Replacing a nested subscribe when getting multiple details from one initial call for ids

So I'm making a few calls to two back-end services, the first is to get the IDs of "big" items and the rest are separate calls to get the details of each "big" item using its ID. I'...
Scala Enthusiast's user avatar
0 votes
2 answers
72 views

Using async/await with a service call

I'm having trouble understanding how to use async/await in this scenario. I have a function GetAdditionalProducts() that calls a service and returns a result. I call that function elsewhere where I ...
noclist's user avatar
  • 1,765
1 vote
1 answer
46 views

Angular Signals inside effect()

In a component, I am accessing item_id as input parameter. Where can I call toSignal() or .subscribe() to service method, if it is not allowed inside constructor / ngOnInit() effect()? item_id = ...
Nevyan Dimitrov Neykov's user avatar
1 vote
2 answers
41 views

Rxjs concatMap that resolves to switchMap

Could you please clarify what is going on here and whether this is a legitimate approach? I have a method for fetching data. When data is fetched, I want to store it in a BehaviorSubject: test$ = new ...
fuji's user avatar
  • 343
3 votes
2 answers
145 views

Looping through Observable and mapping result cuncurrently

I have a NgRx selector data$: Observable<Data[]> which contains array of objects. Inside my component I need to go through each data item and make two HTTP calls. One is conditional (based on ...
Marek's user avatar
  • 63
1 vote
3 answers
51 views

Why RXJS filter operator not working here?

I have a switchMap that I need to check for additional condition before I go into subscribe, in this I want to pick out the studyId that matches with the provided studyId I got: this.studyIdObs$....
Thuan Tran's user avatar
1 vote
1 answer
29 views

Angular State of ComponentStore<T>.updater is undefined

I have this ComponentStore @Injectable({ providedIn: 'root', }) export class SceneGraphStore extends ComponentStore<SceneGraphState> { private readonly sceneGraphUtils = new SceneGraphUtils()...
Son Hai Vu's user avatar
1 vote
2 answers
33 views

Obtain Angular Events Fired During Navigation To A Page

I would like to obtain a list of all Angular router events which were fired during the navigation to a particular view. Yes, I understand in most cases this will be the same. I know how to subscribe ...
Jason's user avatar
  • 4,079
0 votes
0 answers
50 views

How to apply declarative RXJS in Angular for route resolvers

I'm interested in adapting the following code for route resolvers. private categorySubject = new Subject<number>(); categorySelectedAction$ = this.categorySubject.asObservable(); ...
IMOsiris's user avatar
  • 141
0 votes
1 answer
30 views

Struggling with mapping a nested Apollo query result to another value

I have a use case in Angular Apollo that looks something like: eval(someId: number): Observable<string | Error> { return this.apollo.query<FirstQuery>({ query: FirstDocument, ...
Scott Deerwester's user avatar
0 votes
0 answers
39 views

How to stop Java Spring WebSocket connection from immediately closing with EOFException?

I'm working on a web application with an Angular 17 frontend and a Spring Boot backend. I'm trying to set up WebSocket communication on one page in order to receive real time updates from the backend. ...
khh's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
934