-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Description
Describe the bug
When using both select and structuralSharing, structuralSharing is incorrectly typed to the query result instead of the result of the select parameter.
Your minimal, reproducible example
Steps to reproduce
Create a query with both a select and structualSharing. The select should return a different type from the queryFn.
Expected behavior
The structuralSharing function is typed to accept the queryFn return, but is actually passed the select return.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- Typescript 4.9.5
- VS Code
Tanstack Query adapter
react-query
TanStack Query version
4.29.3
TypeScript version
4.9.5
Additional context
No response