Replies: 1 comment 2 replies
-
If you call |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community, recently I´ve started to use RTK Query for a personal PoC thinking to use in the company project.
In my proof of concept I´m using two injectEndpoint apis and I have a login in two steps.
CODE ....
The problem is when this second step of the login failed I want to show the error in the loginComponent but the hook doesn't work.
isError is always false although mutation fails ... Only works if the triggers is done in the component but if the mutation fails done by onQueryStarted I can't get error or data using the hook.
Do we have another way to get the error in the component ? What's wrong ?
Beta Was this translation helpful? Give feedback.
All reactions