typescript error querykey is missing #7745
Unanswered
psm-solution-group
asked this question in
Q&A
Replies: 1 comment
-
In this situation:
|
Beta Was this translation helpful? Give feedback.
0 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.
-
Describe the bug
Hello,
I use Optismistic Update and I return prevData and newData on the onMutate function.
I get this type error on prevData
Type '[QueryKey, IDashboardData | undefined][]' is missing the following properties from type 'IDashboardData': ill, cancellations, holidays, meetings, and 4 more.ts(2740)
And this type error on newData
here are my interface/types
Your minimal, reproducible example
/
Steps to reproduce
here is my code:
Expected behavior
/
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
windows 10
vscode
Tanstack Query adapter
react-query
TanStack Query version
latest
TypeScript version
latest
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions