Closed SimenB closed 3 weeks ago
I'm also wondering why only those three hooks 🤔
yeah we’d need to add the others too. Would you like to contribute this?
the full list should be:
const queryHooks = ['useQuery', 'useQueries', 'useInfiniteQuery', 'useSuspenseQuery', 'useSuspenseQueries', 'useSuspenseInfiniteQuery']
Can I work on this?
Yes please
Describe the bug
Presumably just because it's missing from https://github.com/TanStack/query/blob/c61ff1e2f8036afa3f60ed434866e95175a3421c/packages/eslint-plugin-query/src/rules/no-rest-destructuring/no-rest-destructuring.rule.ts#L10
Your minimal, reproducible example
I don't think this is needed - obviously just missing the function from the code? If I'm wrong, happy to put together a repro
Steps to reproduce
Expected behavior
The ESLint rule should trigger
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
N/A
Tanstack Query adapter
react-query
TanStack Query version
5.59.16
TypeScript version
5.6.3
Additional context
No response