Pass new metadata when calling fetchQuery
#8493
Unanswered
zakariamofaddel
asked this question in
Q&A
Replies: 1 comment 5 replies
-
I wrote a quick test that confirms that
So, from what I can tell, your code should work. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am facing a limitation with
fetchQuery
, where I would like to refetch an existing query by doing this:So that the query (which already exists in cache) can run again and get a some arbitrary data that will influence the new result of the query.
Unfortunately it does not seem like the new meta is passed to the original
queryFn
when usingfetchQuery
on an existing query.Is there any suggestion as to how to handle this case?
Beta Was this translation helpful? Give feedback.
All reactions