Skip to content

Conversation

@babycourageous
Copy link
Contributor

Similar to setQueriesData, a "get" version to fuzzily return multiple matching queries.

Based the code off of setQueriesData and getQueryData - couldn't get typing quite right without the assertion to TData in the map. I'm sure there's a better way to go with that.

Hope this at least points in the right direction!

Similar to setQueriesData, a "get" version to fuzzily return multiple matching queries.
@vercel
Copy link

vercel bot commented Jul 29, 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/DXGhKGkWLaRanfG1DADhp5gTe4QP
✅ Preview: https://react-query-git-fork-babycourageous-featur-a199d6-tannerlinsley.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 29, 2021

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 0aa2ab6:

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

the batching is only necessary in setQueriesData because setQueryData is called under the hood therefore, it is not needed here.
Copy link
Collaborator

@TkDodo TkDodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also add documentation to the queryClient API docs: https://react-query.tanstack.com/reference/QueryClient

Copy link
Collaborator

@TkDodo TkDodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, let's remove this one line please and then we can 🚢 🇮🇹

@tannerlinsley
Copy link
Member

🎉 This PR is included in version 3.19.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@TkDodo
Copy link
Collaborator

TkDodo commented Aug 5, 2021

oh damn, there was a blank after feat and now we didn't release this as a minor version :/

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.

3 participants