How can I use updateQueryData
and stop the response from flowing into selectFromResult
?
#1559
Unanswered
ghasemikasra39
asked this question in
Q&A
Replies: 1 comment
-
The hook simply reads the data that is cached in the store for that cache key. When you use What are you expecting to have happen instead? |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that when I use
selectFromResult
in myUseQuery
hook, and manually update the cache usingupdateQueryData
, the updated cache data will flow intoselectFromResult
. This behavior is surprising for me, and in my case it is undesired:Is there a way to stop this behavior? I.e. when I change the cache manually, I don't want the data to be pre-processed by
selectFromResult
, because I have not calledUseQuery
hook (it was no triggered).Beta Was this translation helpful? Give feedback.
All reactions