Skip to content

Conversation

@kamranayub
Copy link
Contributor

@kamranayub kamranayub commented Jul 29, 2020

Fixes #806

Changes

  • Fix defaultConfig typing of makeQueryCache

@vercel
Copy link

vercel bot commented Jul 29, 2020

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/mwpbxmfyw
✅ Preview: https://react-query-git-fork-kamranayub-fix-gh-806default-config-types.tannerlinsley.vercel.app

queryCache.getQueryData('queryKey');
queryCache.getQueryData(true);
queryCache.getQueryData((query) => true);
queryCache.getQueryData(['queryKey'])
Copy link
Contributor Author

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

Copy link
Contributor Author

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?

@kamranayub
Copy link
Contributor Author

Tests seem to be failing with unrelated issues, probably #751

@kamranayub
Copy link
Contributor Author

kamranayub commented Jul 30, 2020

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 types/index.d.ts still.

@kamranayub kamranayub marked this pull request as ready for review July 30, 2020 15:09
@tannerlinsley
Copy link
Member

I'll merge for now.

@tannerlinsley tannerlinsley merged commit 46a5584 into TanStack:master Jul 31, 2020
@tannerlinsley
Copy link
Member

🎉 This PR is included in version 2.5.10 🎉

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.

bug(types): defaultConfig for makeQueryCache is typed incorrectly

2 participants