The object passed to the queryFn
should be typed as QueryFunctionContext
when using useQueries
#6880
Labels
queryFn
should be typed as QueryFunctionContext
when using useQueries
#6880
Describe the bug
The
context
isn't typed asQueryFunctionContext
in auseQueries
queryFn
.Your minimal, reproducible example
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgVwM4FMCKz1WO1OAXzgDMoIQ4ByAARgEMA7VRgYwGsB6KdBtmAFoAjjigBPagCgppZEwHAITOAEEwYABQBKRFLhw2y1mXQw2AC1UATa71SEAvHE2pgAcyYMANgC41AEbQMADKHl7e2v6seEzucI4AfHoGBrwwyFAq1AAyzOhwAIzUANz6xGXlRizwaOiqsMCsTi66SSmp6Zkqddi4+KiaCOWpcKL9BL4jo3AA2tMzHYuj4xIA0uji-rPUDLb2qNQAugA0C8ur4gBiTP6aAgAebcmkZpY2dgSDjwB0bp4+bRnZapIjnAxHaZEbTlMFgoA
Steps to reproduce
ctx
has typeany
Expected behavior
As a user, I expect
context
to be of typeQueryFunctionContext
.How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Tanstack Query adapter
react-query
TanStack Query version
v5.17.1
TypeScript version
v5.3.3
Additional context
No response
The text was updated successfully, but these errors were encountered: