TanStack · Pipe
select
Use select to subscribe a component to a smaller view of cached query data. Keep the selector stable to avoid running it on every render.
Last updated
Syntax
useQuery({ queryKey, queryFn, select })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
selectuseCallbackqueryFnuseQuery