Is there a way to ignore queryKey parameters? #1640
Unanswered
cloud-walker
asked this question in
General
Replies: 1 comment 5 replies
-
to identify a query, you need all its params I believe. I think you'd need to lift those params up to a place where they are always accessible. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I'm trying to implement optimistic updates, but I think I have a queryKey related issue.
Somewhere in my app I have the following
useQuery
usage:Then in another part of the app (like a single todo page for example, and the TodosList is unmounted), I have a
useMutation
that I want to implement optimistic update mechanism not only for the query of the current page, but also for the one insideTodosList
, but I don't have access to all the params (limit, status and author).Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions