Skip to main content

All Questions

Tagged with
1 vote
1 answer
91 views

Call function after signal value change

I have a component with a simple login form. @Component({ selector: 'app-login', standalone: true, imports: [ ReactiveFormsModule, MatCardModule, ... ], templateUrl: './login....
Pawel's user avatar
  • 11
2 votes
1 answer
83 views

Alternative to ngrx store subscription in the component?

in an application I am working on, I am creating a component that blocks the screen (overrides whatever screen there is) when a certain condition occurs. I am using NgRx for state management. private ...
A. Sarhan's user avatar
1 vote
2 answers
270 views

RXJS operator for combineLatest with no null values

In my Angular project, I am trying to get the values of a few ngrx selectors, and use them all to create a query string to use for an API call. I want to wait until they all emit a non nullish value, ...
Adi Fuchs's user avatar
  • 271
1 vote
1 answer
157 views

Are ngrx effects triggered again after state updates?

In my Angular project I have this ngrx effect, which triggers a new SearchAction: createSearchWithNewLimit$ = createEffect(() => { return this.actions$.pipe( ofType(pageLimitChangedAction)...
Adi Fuchs's user avatar
  • 271
0 votes
1 answer
51 views

Asynchronous issue using rxjs chaining in ngrx effects

@Effect({ dispatch: false }) public setJwtDataParcoursPage = this.actions$.pipe( ofType(INIT_FORM_SUCCESS_ACTION), map((action: InitFormSuccessAction) => action.payload), withLatestFrom(this....
infodev's user avatar
  • 5,265
0 votes
1 answer
62 views

Mock derivative Observable stream

I can not properly mock the derivative Observable stream in Jest/Angular app. Basically I need to test NgRx effect. export const cancel$ = createEffect( ( actions$ = inject(Actions), ...
Yurii_I's user avatar
  • 23
0 votes
1 answer
510 views

How to unit test timer() observable with jasmine marbels

I'm trying in angular application to unit test ngrx effect that introduces some polling logic using timer and maps to some actions depending on the value from some selector. My code is something like ...
AndrewN's user avatar
0 votes
0 answers
35 views

popularTags is undefined in PopularTagsComponent

I am implementing the realworld.io project in Angular. I have a global-feed.component component. In this component, I want to show the popularTags.component component. The component should display a ...
Itra's user avatar
  • 198
1 vote
1 answer
110 views

rxjs: merge 2 streams, complete stream when a specific input emits

I'm writing an Angular app and setting up a system where an NGRX effect will request data to a service. Underlyingly, this service will do two things: Check local cache (sqlite) for the requested ...
thomaux's user avatar
  • 19.8k
1 vote
1 answer
375 views

How to pass Observable @Input to angular component store?

I'm trying to pass an Observable array into an inner 'dumb' component, do some filtering/mapping on it and then pass it to a custom table object that requires an observable as input. My outer ...
Sora Teichman's user avatar
1 vote
1 answer
881 views

How do i fetch my NGRX store state in Cypress test

I am trying to fetch my store state in my Cypress test. As advised here: Cypress - programmatically manipulating Angular/NGRX app I am exposing my store in my angular component this way: constructor(...
Tom Carmi's user avatar
  • 634
0 votes
1 answer
281 views

ngrx data - collection service and data service, custom endpoint observable

I needed a custom PUT request related to my entity in ngrx/data, I would like to show it as I am not certain it is accurate... Say a I have a movie library and I can add tags to movies with PUT ...
grx00's user avatar
  • 19
0 votes
1 answer
224 views

Angular performance around one shot observables

In my angular app, since I implmented the ngrx store, I have a lot of use case where I use observables for one shot query only. For example, when I get the items of my menu in header I know once they ...
Thomas Perrin's user avatar
0 votes
0 answers
24 views

NGRX - Are 2 Actions fired (reliant on each other) guaranteed to be handled sequentially?

I have 2 actions, A and B. A gets fired after B in the immediate next line inside a service. A has a Reducer to update an object in state. B has an Effect, which reads from the part of state that A ...
jarodsmk's user avatar
  • 2,119
-1 votes
2 answers
404 views

Type 'x[] | null' is not assignable to type 'x[]'

I'm having an issue binding a value in angular. I have an observable returning an array as so: entity$ = new Observable<Entity[]>(observer => { if (this.entities[this.selectedEntityId] !== ...
Seb Heron's user avatar

15 30 50 per page
1
2 3 4 5
10