Skip to content

Select option for QueryClient.getQueryData or allow useQuery select without queryFn #8452

Answered by DanielOrtel
DanielOrtel asked this question in Ideas
Discussion options

You must be logged in to vote

Sorry for the late reply, I've been busy with another project that doesn't involve Tanstack stack.

I suppose it's a matter of philosophy at this point. I don't see the issue with the implicit coupling, because the results are readily obvious in case a mistake happens. I generally prefer building up plug-and-play systems, where a component can automatically subscribe to a given "context"(in this case it would be the specific query), which in this paradigm is more difficult to achieve, albeit doable somewhat.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@TkDodo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DanielOrtel
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