useQuery select usage
Hi, I'm working with the useQuery hook in React Query, and I need to extract data from it while also adding some custom logic. I want to make sure I don't disrupt the type definitions. Is it a correct approach to use the select option like this?
1 Reply
sensitive-blue•2y ago
select only transforms
data
, so you still get an object back with all the meta information. data
will be what you return from select