Skip to main content

All Questions

0 votes
1 answer
107 views

Unable to see store state changes displayed in component

I am just setting up a simple component to work with ngrx, and to use the async pipe in my template to react to changes in values. But I am hitting an issue where although I see data is being ...
mindparse's user avatar
  • 7,165
1 vote
0 answers
76 views

How to "reset" concatMap in rxjs?

Im attempting to call a function that dispatches an action that in turn triggers an effect that calls a service as many times as there are pages, starting from page 1. The issue that im having is that,...
Lotun Kanji's user avatar
0 votes
1 answer
302 views

Rxjs/lodash throttle - how to use it on condition and in case that the condition may change while app runing?

I'm listening to the observable that may return true or false value - the only thing that I want to do is to set throttleTime for function call when it's true and don't have it when it's false. So I ...
D.Zet's user avatar
  • 769
0 votes
2 answers
124 views

how to make nested bitbucket API http request in ngrx effects

BitBucket API 1.0 returns tags with no timestamp. Example response: { "size": 2, "limit": 2, "isLastPage": false, "values": [ { "id":...
Ventura8's user avatar
  • 101
2 votes
1 answer
2k views

Angular NgRx Effect concatMap multiple HTTP requests based on condition

I have an action which is mapped to HTTP request via concatMap method because I need those HTTP requests to be sequenced. I'd like to improve this behavior by sequencing only HTTP requests with same ...
Matej's user avatar
  • 186
0 votes
1 answer
395 views

How to override a selector with multiples observables instead of one in order to distinct?

I have an effect that is using the latest from a selector that is returning an object, but I want to pass the unit testing loading multiples observables from a selector that only retrieve one selector....
Tabares's user avatar
  • 4,317
6 votes
2 answers
2k views

NgRx effect, ones failure occurs, does not accept new actions

@Injectable() export class UserEffects { constructor( private store$: Store<fromRoot.State>, private actions$: Actions, private router: Router, private chatService: ChatService,...
devteam6's user avatar
0 votes
1 answer
1k views

How to pass multiple values via operator chain to map operator? In NgRx Effect

I am working on Effect, in which I load new data form REST endpoint and then dispatch action to update store with received data. Together with composing searchUrl, there is some computation of ...
mimo's user avatar
  • 6,737
0 votes
1 answer
982 views

What is the better way to cancel a ngrx effect service call, based on a validation in the effect?

I have this ngrx effect that is calling in this example to movies service, but is depending of a value selector, if this values is as expected in validation, the effect sould send a new action, this ...
Tabares's user avatar
  • 4,317
0 votes
1 answer
205 views

why is Ngrx 8.2 effect throws type mismatch error

I made a small app that takes data(products list) from local json file and shows the names of the products on screen. I have a service to get the data from the json: export class ProductsService { ...
Tamir's user avatar
  • 1
0 votes
0 answers
565 views

How to send multiple HTTP requests in NGRX Effects properly?

I've written the Effect below for a single HTTP request: (payload of getRequestObj is an object) @Effect() indexDoc$ = this.actions$.pipe( ofType<IndexDocuments>(myActionTypes2....
Ahmet Ömer's user avatar
6 votes
2 answers
2k views

Observable with rx broken after error

Im trying to write login flow for my app using ngrx store + ng effects. I have managed to write it and it works in happy scenerio, but when user inputs wrong values to the form, so that server ...
filemonczyk's user avatar
  • 1,683
2 votes
1 answer
469 views

@ngrx/effects BehaviourSubject giving last value to subscribers

Something I noticed the other day. I was subscribing to the Actions stream inside @ngrx/effects. I noticed (an issue for me) where a component, which subscribes to Actions late, receives the last ...
Thomas Maddocks's user avatar
1 vote
0 answers
1k views

How to chain dispatch in ngrx?

eg this.store.dispatch(this.nowChannellistActions.toggleChannel(channel)); this.store.dispatch(this.playerSearchActions.searchCurrentQuery()); In the above code I want the second dispatch to ...
ishandutta2007's user avatar