-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement useQuery prefetching #821
Comments
3 tasks
Let me know if you want to work on this but need more information about how to build it! |
Hey @flybayer ! I can work on this. I'll probably need more information but I can start by checking how |
@ivandevp sounds good! :) |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both of the following should cache the
getProduct
query, same as if it was used withuseQuery
rpc.ts
file in thecore
package.useQuery
.queryCache.setQueryData
from react-query to actually set the cacheThen end-result is that once prefetched like shown above, then the next call of
useQuery(getProduct, {where: {id: productId}})
will return the cached data.The text was updated successfully, but these errors were encountered: