TanStack / query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
https://tanstack.com/query
MIT License
42.76k stars 2.92k forks source link

docs(react-query): fix queryClient description of useMutation and use… #8077

Closed baeharam closed 2 months ago

baeharam commented 2 months ago

queryClient object could be passed into second parameter of useQuery and useMutation. But, current description explains it could be passed with options parameter so it should be fixed.

(Related to #7946)

nx-cloud[bot] commented 2 months ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 90efcd0ce012d7297022e81ad89079399e0946b0. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets - [`nx affected --targets=test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build --parallel=3`](https://cloud.nx.app/runs/fMj6hV1dTe?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=build --exclude=examples/** --exclude=integrations/**`](https://cloud.nx.app/runs/TOMKiQNmEf?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.

pkg-pr-new[bot] commented 2 months ago

Open in Stackblitz

More templates

- [@tanstack/query-example-angular-basic](https://pkg.pr.new/template/e691b06b-8640-40a7-a8da-86d1642d065f) - [@tanstack/query-example-angular-infinite-query-with-max-pages](https://pkg.pr.new/template/696bded4-4011-4f23-99d8-8c51c42f6bf5) - [@tanstack/query-example-angular-router](https://pkg.pr.new/template/cda26176-2e25-426b-ad60-75f07cdd8e8a) - [@tanstack/query-example-angular-simple](https://pkg.pr.new/template/9d83a53f-c1f5-498a-adb2-a073e7ba4b00) - [@tanstack/query-example-solid-astro](https://pkg.pr.new/template/49e14857-2f30-464a-bf2b-46de314851a7) - [@tanstack/query-example-solid-basic](https://pkg.pr.new/template/79ba5d3c-79b4-433c-8d9a-4738d9244051) - [@tanstack/query-example-solid-basic-graphql-request](https://pkg.pr.new/template/b44b1a0d-7377-49b8-869b-69dc0ad3ec9e) - [@tanstack/query-example-solid-default-query-function](https://pkg.pr.new/template/c34de5cd-3a85-49e7-b67f-d332e5c1abed) - [@tanstack/query-example-solid-simple](https://pkg.pr.new/template/a39980a5-2124-45f9-841f-62c0416c12fe) - [@tanstack/query-example-solid-start-streaming](https://pkg.pr.new/template/8361e700-d78e-4d4e-a72b-4f23267a242b) - [@tanstack/query-example-react-algolia](https://pkg.pr.new/template/580e17a3-2e2c-4d81-aaf7-5dc3514edb99) - [@tanstack/query-example-react-auto-refetching](https://pkg.pr.new/template/388f4f58-0a9e-41dd-892b-6f39eae0494e) - [@tanstack/query-example-react-basic](https://pkg.pr.new/template/0fe11264-8ce6-4c82-af9c-3c28ac38d495) - [@tanstack/query-example-react-basic-graphql-request](https://pkg.pr.new/template/1a85fd0b-5e0c-4607-b09b-6d1f4420e82f) - [@tanstack/query-example-react-default-query-function](https://pkg.pr.new/template/648153f4-64d8-44f5-adec-50dbf9d59bf1) - [@tanstack/query-example-react-devtools-panel](https://pkg.pr.new/template/b997c267-2e2d-445e-b8ba-5f6a1b569b1a) - [@tanstack/query-example-react-infinite-query-with-max-pages](https://pkg.pr.new/template/958abf24-a4d8-4024-82a3-ba1d242cefe9) - [@tanstack/query-example-react-load-more-infinite-scroll](https://pkg.pr.new/template/49e4f13d-2aa0-4d0e-a0cc-b080a4b1ea8c) - [@tanstack/query-example-react-nextjs](https://pkg.pr.new/template/f87ca02e-a06f-4f9f-992b-c1482aed87d5) - [@tanstack/query-example-react-nextjs-app-prefetching](https://pkg.pr.new/template/c740565e-5ae1-4560-961d-f42b749a1106) - [@tanstack/query-example-nextjs-suspense-streaming](https://pkg.pr.new/template/a34929ba-604b-4163-b7dd-58b528df4baa) - [@tanstack/query-example-react-offline](https://pkg.pr.new/template/71eed5e8-df36-4c4e-a8bb-c8f724ab6511) - [@tanstack/query-example-react-optimistic-updates-cache](https://pkg.pr.new/template/4aa06ac6-2b02-48f0-b076-f4a4a291e803) - [@tanstack/query-example-react-optimistic-updates-ui](https://pkg.pr.new/template/2e84a841-4621-478a-ac07-9b857d9bde52) - [@tanstack/query-example-react-pagination](https://pkg.pr.new/template/1f678566-58ff-4833-80b8-565af543d824) - [@tanstack/query-example-react-playground](https://pkg.pr.new/template/a07edbf3-d240-4ce4-96d2-3c80629c78d6) - [@tanstack/query-example-react-prefetching](https://pkg.pr.new/template/42462254-8a81-4ddd-8e55-db443c6c224d) - [@tanstack/query-example-react-react-native](https://pkg.pr.new/template/3fd87498-03aa-4620-9ae2-553222efb45a) - [@tanstack/query-example-react-router](https://pkg.pr.new/template/db3b9993-ac05-4b31-9934-d49caff4b2a9) - [@tanstack/query-example-react-rick-morty](https://pkg.pr.new/template/d72fd67e-30cb-449a-a03d-c39a543bb6de) - [@tanstack/query-example-react-shadow-dom](https://pkg.pr.new/template/c466c4c1-bbed-469a-8471-ef444c5a87f7) - [@tanstack/query-example-react-simple](https://pkg.pr.new/template/5a6aaa44-f8a8-421d-950a-5ea5fe67c03c) - [@tanstack/query-example-react-star-wars](https://pkg.pr.new/template/ba074166-5f10-429a-9c50-8eec3809df9d) - [@tanstack/query-example-react-suspense](https://pkg.pr.new/template/dbd29068-658c-4fbd-9afd-fd5027598120) - [@tanstack/query-example-vue-2.6-basic](https://pkg.pr.new/template/b8205190-8b73-47b4-9adb-7d0798383c90) - [@tanstack/query-example-vue-2.7-basic](https://pkg.pr.new/template/3d16bb51-15d9-4fbb-aea6-d363eba75994) - [@tanstack/query-example-vue-basic](https://pkg.pr.new/template/66e561e0-8ca8-480d-b155-ea094cd3f25b) - [@tanstack/query-example-vue-dependent-queries](https://pkg.pr.new/template/2226de36-bf9a-4213-bf48-41ca7ee15dc4) - [@tanstack/query-example-vue-nuxt3](https://pkg.pr.new/template/d113dde7-d601-4551-a14f-715ee06b28f4) - [@tanstack/query-example-vue-persister](https://pkg.pr.new/template/6de68ffd-c055-43ac-bce0-32c81eb45b14) - [@tanstack/query-example-vue-simple](https://pkg.pr.new/template/06d4519f-6aa0-4069-abe4-772bd3e050f6) - [@tanstack/query-example-svelte-auto-refetching](https://pkg.pr.new/template/63ce58d7-9f54-4cd1-9d74-cb6cf304b4f9) - [@tanstack/query-example-svelte-basic](https://pkg.pr.new/template/4285bf83-49f3-436a-8f0f-ea55bae06d4c) - [@tanstack/query-example-svelte-load-more-infinite-scroll](https://pkg.pr.new/template/4ad0c939-8a32-4f1a-8e4d-565dec3fdebb) - [@tanstack/query-example-svelte-optimistic-updates](https://pkg.pr.new/template/d7e745a4-aace-47cb-ad2c-807e2b6fe565) - [@tanstack/query-example-svelte-playground](https://pkg.pr.new/template/068ef218-0b72-4c61-b117-72f5237237e1) - [@tanstack/query-example-svelte-simple](https://pkg.pr.new/template/d3b897c7-348a-46aa-82fe-6dfdb604fea7) - [@tanstack/query-example-svelte-ssr](https://pkg.pr.new/template/7f0fb497-a087-47e8-8d2a-9e654eafd0c9) - [@tanstack/query-example-svelte-star-wars](https://pkg.pr.new/template/69abc7e3-0410-476c-b058-ae2fae19fdef)

@tanstack/angular-query-devtools-experimental

``` pnpm add https://pkg.pr.new/@tanstack/angular-query-devtools-experimental@8077 ```

@tanstack/angular-query-experimental

``` pnpm add https://pkg.pr.new/@tanstack/angular-query-experimental@8077 ```

@tanstack/eslint-plugin-query

``` pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-query@8077 ```

@tanstack/query-async-storage-persister

``` pnpm add https://pkg.pr.new/@tanstack/query-async-storage-persister@8077 ```

@tanstack/query-broadcast-client-experimental

``` pnpm add https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@8077 ```

@tanstack/query-core

``` pnpm add https://pkg.pr.new/@tanstack/query-core@8077 ```

@tanstack/query-persist-client-core

``` pnpm add https://pkg.pr.new/@tanstack/query-persist-client-core@8077 ```

@tanstack/query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/query-devtools@8077 ```

@tanstack/query-sync-storage-persister

``` pnpm add https://pkg.pr.new/@tanstack/query-sync-storage-persister@8077 ```

@tanstack/react-query

``` pnpm add https://pkg.pr.new/@tanstack/react-query@8077 ```

@tanstack/react-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/react-query-devtools@8077 ```

@tanstack/react-query-next-experimental

``` pnpm add https://pkg.pr.new/@tanstack/react-query-next-experimental@8077 ```

@tanstack/react-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/react-query-persist-client@8077 ```

@tanstack/solid-query

``` pnpm add https://pkg.pr.new/@tanstack/solid-query@8077 ```

@tanstack/solid-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/solid-query-devtools@8077 ```

@tanstack/svelte-query

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query@8077 ```

@tanstack/solid-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/solid-query-persist-client@8077 ```

@tanstack/svelte-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query-devtools@8077 ```

@tanstack/svelte-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query-persist-client@8077 ```

@tanstack/vue-query

``` pnpm add https://pkg.pr.new/@tanstack/vue-query@8077 ```

@tanstack/vue-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/vue-query-devtools@8077 ```

commit: 90efcd0