is a promise returned from onError callback on a mutation awaited?
Hey all, just a quick question. I know when we do for example an onsuccess and return a promise to invalidate a given query i will be awaited.
Does this also count for the onError callback?
I need to do some logic whenever a mutation failes, and after that retry the mutation.
For example.
- add to cart
- onError -> check if cart exists/create cart
- rertry add to cart
Does this also count for the onError callback?
I need to do some logic whenever a mutation failes, and after that retry the mutation.
For example.
- add to cart
- onError -> check if cart exists/create cart
- rertry add to cart