select
option for queries
#113
Replies: 2 comments 5 replies
-
I'm actually not a big fan of
doesn't apply. I would personally just write that logic within the |
Beta Was this translation helpful? Give feedback.
-
I'm coming from a React background, so maybe I’m biased, lol. I use select in TanStack Query as a way to derive state directly from the query itself without needing to wrap it in a If I needed to do some key mapping at the API level but couldn’t modify the API directly, I’d likely use select to handle it. It feels clean to me to keep this logic within the query, and it avoids the need for additional I understand that select might not always be strictly necessary, and I could use computed instead, but if it doesn't introduce complexity or issues, I think it’s a cool and convenient feature to have. |
Beta Was this translation helpful? Give feedback.
-
Hey! Just a feature request for: https://tanstack.com/query/latest/docs/framework/react/guides/render-optimizations#select
I'm on my way to building features to use
pinia-colada
on my project on the future instead ofvue-query
so I'll work in this. Just creating the issue so we can discuss it here too.Beta Was this translation helpful? Give feedback.
All reactions