We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the following query auto-fixes correctly when using @tanstack/query/prefer-query-object-syntax:
@tanstack/query/prefer-query-object-syntax
// input const query = useQuery(['key'], () => Promise.resolve('data')) // output const query = useQuery({ queryKey: ['key'], queryFn: () => Promise.resolve('data') })
However, if you have the same query in a multi-line setup, the output is wrong:
// input const query = useQuery( ['key'], () => Promise.resolve('data'), ) // output const query = useQuery( , { queryKey: ['key'], queryFn: () => Promise.resolve('data') })
Gif of working version:
Gif of non-working version
@Newbie012 FYI
The text was updated successfully, but these errors were encountered:
I'll take a look at it
Edit: #4637
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
the following query auto-fixes correctly when using
@tanstack/query/prefer-query-object-syntax
:However, if you have the same query in a multi-line setup, the output is wrong:
Gif of working version:
Gif of non-working version
@Newbie012 FYI
The text was updated successfully, but these errors were encountered: