-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
queryOptions typing errors when calling queryClient methods with ref in query key #7101
Copy link
Copy link
Closed
Labels
Description
Describe the bug
Follow on from #6299. It appears the typing issues persist if your queryKey includes any Ref or MaybeRef values, both nested in objects and at the top level.
Your minimal, reproducible example
Steps to reproduce
- Look at src/posts.vue
- An erroneous type error should appear on line 15 but not on line 17
Expected behavior
There should be no typing errors, as we have ensured the query options object is valid by passing it through the queryOptions function.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- OS: MacOS 14.3.1 (23D60)
- Browser: Chrome Version 122.0.6261.112 (Official Build) (arm64)
Tanstack Query adapter
vue-query
TanStack Query version
v5.27.5
TypeScript version
v5.1.6
Additional context
No response
Reactions are currently unavailable