Skip to content
Discussion options

You must be logged in to vote

it seems like you’re making use of streaming by sending the promise from the server to the client. With this approach, the query on the client picks up the promise from the server. If it fails, retries apply.

the options taken into account here are the ones from when the query was created via hydration, not the one from useQuery since we can’t know if and whene the query that gets sent from the server will be picked up on the client, and we also don’t know which options will be applied then.

to set those options (retry: false is likely the one that matters) you can either set a global default on the queryClient, or set it for hydration only on the HydrationBoundary with:

<HydrationBounary…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dBianchii
Comment options

@TkDodo
Comment options

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