Skip to content
Discussion options

You must be logged in to vote

retry should happen because it's an internal thing. There is an explicit code check though:

https://github.com/tannerlinsley/react-query/blob/f53d8b18c0396dee1052b3bbdbbf3e68b589dc99/src/core/queryClient.ts#L361-L364

that references this issue:
#652

I'm not really sure if the implementation is correct. Judging from the comments, it seems like we wanted to turn off default retries for prefetchQuery, but instead did it on fetchQuery - which also works for prefetching, because prefetchQuery just calls fetchQuery internally.

Looking at the PR, which was made for v2, this used be in the prefetching function, but potentially regressed in the v3 rewrite:

#760

I would accept a PR that moves this …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Yuvasee
Comment options

@TkDodo
Comment options

@overyew
Comment options

@TkDodo
Comment options

Answer selected by Yuvasee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants