useQuery: non-primary keys? #853
Unanswered
jackmellis
asked this question in
General
Replies: 0 comments
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.
-
Not sure the best way to explain this problem. Imagine this example:
When my language changes I want to refetch messages. However, right now that will create a brand new query as the key has changed, so the status reverts to
loading
, the data becomesnull
etc. etc.I want to be able to pass a key that, when it changes, causes the query to invalidate, but doesn't create a brand new query.
Is this possible? Have I done something wrong? Perhaps I've missed something in the api docs...
Beta Was this translation helpful? Give feedback.
All reactions