Skip to content
Discussion options

You must be logged in to vote

queryFn is the only one that receives a QueryFunctionContext, we can’t pass it everywhere because we don’t have the signal and consuming it opts you into query cancellation.

placeholderData is an observer specific property so it’s rarely among the shared query options. If you really want that, passing the queryClient in manually to a function is fine imo.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RodolfoSilva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants