There is a similar issue closed with indication 'works as designed', but it appears not to work that way at least on my end.
Here's a reproduction of the issue:
https://stackblitz.com/edit/angular-gfh6pn
One remark regarding throttle operator in the effects - if commented out, effect fires POST request, cancels it immediately, then fires pre-flight and POST again.
With throttle, there are no cancelled requests, but both pre-flight and POST are duplicated.
In the similar issue closed there were a couple of suggestions to tackle this behavior:
pre-flight request followed by an actual request each time action is triggered, no duplicated requests
"@ngrx/core": "^1.2.0",
"@ngrx/effects": "^6.0.1",
"@ngrx/store": "^6.0.1",
"@ngrx/store-devtools": "^6.0.1",
"@ngrx/store-log-monitor": "^3.0.2"
None
[ ] Yes (Assistance is provided if you need help submitting a pull request)
[x] No
If you want to complete your request before another request can be made you should use the RxJS exhaustMap operator.
If you have any questions I'll be glad to help you in our gitter channel.
@timdeschryver thank you so much
This also solve my issue as well thanks @timdeschryver
Most helpful comment
If you want to complete your request before another request can be made you should use the RxJS
exhaustMapoperator.If you have any questions I'll be glad to help you in our gitter channel.