T
TanStack3y ago
harsh-harlequin

useQuery onError handler won't accept a promise

Hi all, so I'm a little confused. Is there a reason that useMutation onError handler will take a promise, but the useQuery onError won't? I'm trying to deal with a situation where when a query fails, I want to do some async stuff. I'd like to do it in a way where I use async/await. I know there are ways to work around it basically ignoring the promise, but I'm just curious why one takes a promise and the other doesn't. RQ Version: 4.22.0
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?