ngneat/elf

Incorrect RequestResult is received when adding trackRequestResult to an http request.

ozderko opened this issue · 8 comments

Which @ngneat/elf-* package(s) are the source of the bug?

requests-status

Is this a regression?

No

Description

I added it to the service
trackRequestResult([AuthRequestStatus.sendPhone]) and in the selector joinRequestResult([AuthRequestStatus.sendPhone])
But I get an incorrect status when the backend responds with a 400 error.
image

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

No response

Anything else?

No response

Do you want to create a pull request?

No

Can you provide a reproduction on stackblitz, please?

Something doesn't make sense in your image. The response is from POST signin request and not AuthRequestStatus.sendPhone

I will add a photo of my service and the selector.
auth.selector.ts
image

auth.service.ts
image

Interesting, I'll check it.

Just in case, I'll send a photo of my store, maybe I'm doing something wrong.
auth.repository.ts
image

I think it's a problem on my end, I'm using Ionic and I tried to call catchError and nothing happened :c
Thanks for the help )

It turned out to be even easier, I had an Interceptor that caught the error before it reaches the service)