New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getQueryData function #3490
Comments
Hi! |
absolutely @pivotrooky ! give us a shout if you need any help |
Hey , I want to work on this issue .. |
OK @pivotrooky .I am also a beginner |
Hey @Himanxu1, I think @pivotrooky meant that he was already assigned to this issue :) In general, it's helpful to look at the discussion and see if someone was already assigned or created a PR or mentioned that they are going to work on an issue. This way, we can avoid working on the same things and any future confusion. I hope you can decide between you two who's going to work on this one :) |
@beerose I'd like to free up this issue, as there'll be plenty of issues to work on in the future. |
I have talked to @Himanxu1 about picking up this ticket on discord and he's ok with passing this to me. Could this be assigned to me instead? |
Sure! |
What do you want and why?
I want an exported
getQueryData
function that takes in a resolver.Instead of having to get the query key manually, such as below
I want to be able to write
Possible implementation(s)
Add a function
getQueryData
similar to thesetQueryData
function defined inreact-query-utils
as below.blitz/nextjs/packages/next/data-client/react-query-utils.ts
Line 166 in e1fc695
Additional context
The main use case I have for this is to do optimistic updates. See example from react query docs.
The text was updated successfully, but these errors were encountered: