You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using useMutation in my application and I have configured it with retry: true and retryDelay: 10_000. My expectation is that the mutation will retry every 10 seconds after a failure.
However, I'm having trouble identifying when exactly the retry happens. Once the mutation starts, its status becomes Pending and stays that way throughout the retries. This makes it unclear whether the retry logic is actively attempting the operation again or simply waiting for the retry delay to elapse.
Is there any way to observe or be notified about the retry attempts? For example, is there a method or state in useMutation that provides insight into when a retry is happening, or should I implement some custom logic to track this?
Any help or suggestions would be greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I'm using
useMutation
in my application and I have configured it withretry: true
andretryDelay: 10_000
. My expectation is that the mutation will retry every 10 seconds after a failure.However, I'm having trouble identifying when exactly the retry happens. Once the mutation starts, its status becomes Pending and stays that way throughout the retries. This makes it unclear whether the retry logic is actively attempting the operation again or simply waiting for the retry delay to elapse.
Is there any way to observe or be notified about the retry attempts? For example, is there a method or state in useMutation that provides insight into when a retry is happening, or should I implement some custom logic to track this?
Any help or suggestions would be greatly appreciated!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions