useInfiniteQuery not inferring types
on typescript 5.3.2
on @tanstack/react-query@5.8.4
the following is not inferring the correct types for useInfiniteQuery result
the type i get is
does anyone know what's up?
- useQuery infers type correctly (e.g. if i only use queryFn/queryKey as above)
- @tanstack/react-query@4.x infers type correctly
- lowering versions @5.0 and @5.4 does not resolve my issue
- lowering typescript version to 4.9 does not resolve my issue
- made sure vscode is using same ts version as i have installed (rather than vscode version)
on @tanstack/react-query@5.8.4
the following is not inferring the correct types for useInfiniteQuery result
the type i get is
does anyone know what's up?
- useQuery infers type correctly (e.g. if i only use queryFn/queryKey as above)
- @tanstack/react-query@4.x infers type correctly
- lowering versions @5.0 and @5.4 does not resolve my issue
- lowering typescript version to 4.9 does not resolve my issue
- made sure vscode is using same ts version as i have installed (rather than vscode version)