-
Hi, I only recently started using React-Query, my apologies if I misunderstood something. I felt it might be a cool feature if Example use case: const { isLoading, isRetrying, data } = useQuery();
if (isRetrying) {
return <p>Whoops, this is taking longer than expected, hang in tight!</p>;
}
if (isLoading) {
return <p>Loading...</p>;
} |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Apr 29, 2021
Replies: 1 comment
-
I think the returned |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Lesik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the returned
failureCount
would help in this case.