Add QueryKey to combine: (results) => in useQueries
#10054
-
|
Any reason why queryKey is not in the results list? Can we have it added please? Why I need it: First I might have fetch queries: [{employmentId: 1, dataUpdatedAt: 3}, {employmentId: 2, dataUpdatedAt: 5}], next I might only fetch [{employmentId: 2, dataUpdatedAt: 5}], but since the dataUpdatedAt is still 5, consumers wont rerender if they listen on dataUpdatedAt. It would be perfect if I had access to each query's queryKey, so that I could derive a dataUpdatedAt from the queries' querykeys. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
we inject the queryKey into the queryFn so if you need it, you can just add it to the resulting |
Beta Was this translation helpful? Give feedback.
we inject the queryKey into the queryFn so if you need it, you can just add it to the resulting
databy returning it alongside your data.