Skip to content
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

Fixed incorrect syntax in QueryCache docs #3940

Merged
merged 3 commits into from
Jul 30, 2022
Merged

Conversation

nick-0101
Copy link
Contributor

The docs were showing that to fetch data from the query cache, you pass a string into the find and findAll method. That is incorrect as in react query v4, keys are arrays only.

The docs were showing that to fetch data from the query cache, you pass a string into the `find` and `findAll` method. That is incorrect as in react query v4, keys are arrays only.
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 28, 2022

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 b8c5f14:

Sandbox Source
@tanstack/query-example-react-basic Configuration
@tanstack/query-example-react-basic-typescript Configuration

Removed arrays from queryCache.find and queryCache.findAll as `queryKey?: QueryKey`: [Query Keys](../guides/query-keys)` is already an array.
@TkDodo TkDodo merged commit 2861b53 into TanStack:main Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants