How to cache selected data from select in react query? #4291
Answered
by
TkDodo
deepgolani4
asked this question in
General
-
is there any way to cache only selected data (transformed by |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Oct 9, 2022
Replies: 1 comment
-
no there is not because select is specific to a per-query basis. Each invocation of There are tons of ways to do data transformation, see: https://tkdodo.eu/blog/react-query-data-transformations |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
deepgolani4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no there is not because select is specific to a per-query basis. Each invocation of
useQuery
could have it's own select, which selects different data.There are tons of ways to do data transformation, see: https://tkdodo.eu/blog/react-query-data-transformations