Skip to content

Conversation

@TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Sep 18, 2021

when using the overloaded version with multiple arguments, passing the same value inside options doesn't have any effect and is ignored at runtime, e.g.: useQuery(key, fetchIt, { queryKey: 'foo' }). With this fix, we disallow that on type level

closes #2647

… provided as a separate argument

when using the overloaded version with multiple arguments, passing the same value inside options doesn't have any effect and is ignored at runtime, e.g.: `useQuery(key, fetchIt, { queryKey: 'foo' })`. With this fix, we disallow that on type level
@vercel
Copy link

vercel bot commented Sep 18, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tannerlinsley/react-query/A2htxAFpRLafnHmDqMvwqGz4PsMQ
✅ Preview: https://react-query-git-fork-tkdodo-feature-strict-282b4c-tannerlinsley.vercel.app

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit faf65d4:

Sandbox Source
tannerlinsley/react-query: basic Configuration
tannerlinsley/react-query: basic-typescript Configuration

@TkDodo TkDodo merged commit 7aadd68 into TanStack:master Sep 18, 2021
@TkDodo TkDodo deleted the feature/strictify-types branch September 18, 2021 21:02
@tannerlinsley
Copy link
Member

🎉 This PR is included in version 3.24.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot Override Query Key when passed it Query Options

2 participants