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
setQueryData seems to break resources typing
#2609
Comments
|
Thanks! This is ready for someone to work on. Code is here: https://github.com/blitz-js/blitz/blob/canary/packages/core/src/use-query-hooks.ts#L35 |
|
Hey @ugogo! I tried reproducing it with Blitz examples and my side project, and I did see an |
|
hey @beerose |
|
I want to work on this issue! |



What is the problem?
When using
useQuery, the resources' type seems to get lost when destructuringsetQueryDataPaste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Inspect typing with and without
setQueryDataRun
blitz -vand paste the output here:Please include below any other applicable logs and screenshots that show your problem:
Here,
planningshas the correct typeBut when using
setQueryData,planningshas lost its typingThe text was updated successfully, but these errors were encountered: