Replies: 1 comment 2 replies
-
I don't see an actual use-case here. what do you want to combine? the result of multiple queries? Please provide a code example or even a codesandbox reproduction that shows what you want to do / what you want to combine. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I'm using react-query for a while now, and I was wondering whether the library allows chaining multiple selectors together. This turned out to be a real need in a project I work on.
If this isn't supported, maybe we can allow it by exposing a utility function that combines selectors:
And then we can use it in the code like this:
Another idea is to combine selectors behind the scenes. We can check if the provided
select
function is of type list or function. WDYT?Beta Was this translation helpful? Give feedback.
All reactions