Open remmeier opened 7 years ago
Is this fixed by now? If so, I'd be glad to receive at least a v1.1.1 or v1.2 ...
Partially, I changed to mergeMap so it allow concurrent requests again. So the worst part is fixed.
But what it should further do is in case of concurrent requests to the same resource (multiple updates of same resource, multiple queries) it should cancel the old observables/effects. Not yet quite sure how, it would be something like a switchMap grouped by resource/id resp. queryid.
I do get the point, but this could be another issue, right? So, how about moving this to a new ticket and releasing the current solution. Your fix would help me out big time...
I have a problem with mergeMap
used again. Once I reported https://github.com/abdulhaq-e/ngrx-json-api/issues/128 which I can no longer reproduce. But now I have a new problem that when I navigate away from the page and return back to it, I see the old resource returned for this.newAnimal$
, which is the one that I previously added to the list, rather than a completely empty one. With switchMap
this does not happen...
We need some expertise in rxjs
to find a compromise...
maybe an additional takeUntil(...) can save the day.
this solution would be more specific that just the generic switch map.
running two requests in parallel leads to cancellation of first request.