Replies: 1 comment
-
keys should be computable from their input (id in your case). If you have the ids, you should be able to build the keys at all times. Have a read here: https://tkdodo.eu/blog/effective-react-query-keys |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an API for listing keys? For example, let's say I have
["team", "players", number]
. How do I get all the player numbers? I'd use this info to pass to queries.I could keep this in React useState somewhere.
Beta Was this translation helpful? Give feedback.
All reactions