-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(types): Fix defaultConfig typing for makeQueryCache #807
New issue
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
fix(types): Fix defaultConfig typing for makeQueryCache #807
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tannerlinsley/react-query/mwpbxmfyw |
| queryCache.getQueryData('queryKey'); | ||
| queryCache.getQueryData(true); | ||
| queryCache.getQueryData((query) => true); | ||
| queryCache.getQueryData(['queryKey']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, seems prettier took effect here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tannerlinsley would you prefer I revert these formatting changes?
|
Tests seem to be failing with unrelated issues, probably #751 |
…into fix/TanStackgh-806/default-config-types
|
See #806 (comment) but even with TS source, this will be an issue until the declaration files are generated since the package typings resolve to |
|
I'll merge for now. |
|
🎉 This PR is included in version 2.5.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes #806
Changes
defaultConfigtyping ofmakeQueryCache