Replies: 1 comment 3 replies
-
you're mixing two things here: cache data and observer result
So, no, if you add an |
Beta Was this translation helpful? Give feedback.
3 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.
-
let's say that the API response is:
and the query is:
Is there any way to optimistically update the
active
key that was added inselect
? Since the updater function ofqueryClient.setQueriesData()
has access to the original query data (API response data) only, there is no way to do it as far as I know.Beta Was this translation helpful? Give feedback.
All reactions