using query selectors inside components #1394
Unanswered
dudi-cornix
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Since a call to But, ultimately the call to read the data from the store has to be done using the arguments somehow - otherwise there's no way to know which cached query result is being accessed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hey everyone,
I was wondering how do you use your rtk-query selectors when needing to access the cached data in multiple child components,
I love the idea we can use selectors to fetch the data anywhere we want, but in most cases, your query contains parameters you need to pass in order to access the cached data so it happens I need to pass the query arguments all down the component tree to be able to use with my selectors
for example:
so is there an elegant way to access the cached data without having to pass the arguments ?
Beta Was this translation helpful? Give feedback.
All reactions