Get all the queryKeys used on the React tree #7396
Unanswered
pedroapfilho
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know how doable it is, but it would be very helpful, for some complex error handling cases, to have a way to get all the keys used on a specific tree, like,
Then, on the
Parent
, we could have something like auseGetDownstreamQueryKeys
, that gets all the queryKeys from that node, and returns it as an array.This, in conjunction with
Query Observers
, could make a very neat error handling case, where we can check if any of the requests downstream failed, and we could show the status of that specific page/widget/whatever, making it easier to handle complex apps error cases.Beta Was this translation helpful? Give feedback.
All reactions