Mutation Stuck in "isLoading"
I have a mutation that performs a login when they press the button. If it errors I do stuff and if it succeeds I push them on to the next step or whatever.
I have my login mutation, which seems to constantly be stuck in a loading state.
I have verified that the login errors. I go to the devtools and I see it error, 400. Axios throws an error in console, request failed with status code 400, invalid credentials.
The booleans never change. isLoading becomes true and it stays like that. isError stays false. isSuccess also stays false.
I cannot for the life of me figure this out. I can share some code but it seems to all look fine. I'm pretty weirded out by this one... thanks!
2 Replies
other-emerald•3y ago
Please show a codesandbox reproduction
genetic-orangeOP•3y ago
Hey, thanks! With this one, there is a lot of moving pieces, several developers involved, proxy server., etc
I think it has something to do with one of my coworkers code, I'm going to check on that right now and see. If it isn't, I'll post some snippets.