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.77k stars 2.93k forks source link

Don't use $ prefix in Bash examples #8067

Closed peterbe closed 2 months ago

peterbe commented 2 months ago

On https://tanstack.com/query/latest/docs/framework/react/installation for example, the Bash snippets do not have a leading $ character. So you can click the clipboard and then paste these into your terminal. Doesn't work if there's a $ prefix on the bash command.

nx-cloud[bot] commented 2 months ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 1dbb0bf95ba22c90e249f6ae8acc92d72e7977f0. 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/3u1yvD3lOn?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=build --exclude=examples/** --exclude=integrations/**`](https://cloud.nx.app/runs/pDS6scxNsS?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/2e58332e-87b1-46d2-9dbd-d57256f00136) - [@tanstack/query-example-angular-infinite-query-with-max-pages](https://pkg.pr.new/template/cb129505-8205-487c-ae15-ca3c08f89a19) - [@tanstack/query-example-angular-router](https://pkg.pr.new/template/366bc8e7-f920-413b-bad9-28ac8581d19c) - [@tanstack/query-example-angular-simple](https://pkg.pr.new/template/94b01fd2-9277-4ae1-a84c-2ea9316d3204) - [@tanstack/query-example-solid-astro](https://pkg.pr.new/template/d2599126-4211-432d-a352-6e429c811fb0) - [@tanstack/query-example-solid-basic](https://pkg.pr.new/template/a24fc104-1753-4cca-b8bd-9a24a8675d0c) - [@tanstack/query-example-solid-default-query-function](https://pkg.pr.new/template/744aad80-de2d-4cc6-9887-085f48de323f) - [@tanstack/query-example-solid-basic-graphql-request](https://pkg.pr.new/template/84c83600-cc11-4ab2-86cb-e112291ff07d) - [@tanstack/query-example-solid-simple](https://pkg.pr.new/template/53db6c32-56a7-4334-9770-b71d399684bf) - [@tanstack/query-example-solid-start-streaming](https://pkg.pr.new/template/1f9a95ed-d2f5-4432-8818-07417eb26da9) - [@tanstack/query-example-react-auto-refetching](https://pkg.pr.new/template/9454dacb-c663-4b6e-8147-f06c0fa70b57) - [@tanstack/query-example-react-algolia](https://pkg.pr.new/template/9b4d6f14-91ee-45f6-971c-1ab0cd7e761d) - [@tanstack/query-example-react-basic-graphql-request](https://pkg.pr.new/template/843f3a83-98f2-49d5-9f8e-43b117f00635) - [@tanstack/query-example-react-basic](https://pkg.pr.new/template/1223efae-be8a-4baa-b65b-ad101b0aac8a) - [@tanstack/query-example-react-devtools-panel](https://pkg.pr.new/template/1df7314e-539a-4836-9dd1-cbb080c97fc8) - [@tanstack/query-example-react-default-query-function](https://pkg.pr.new/template/e84c6657-2628-43a1-aa2c-3f6312eeb88f) - [@tanstack/query-example-react-load-more-infinite-scroll](https://pkg.pr.new/template/0d76aa5c-d048-4c4b-bc7a-0a76a4b118cf) - [@tanstack/query-example-react-infinite-query-with-max-pages](https://pkg.pr.new/template/e37d4bda-6a2b-4cc7-ad61-d372438dfb0d) - [@tanstack/query-example-react-nextjs](https://pkg.pr.new/template/12e33f4b-2137-4c29-84f4-cca0b968b60d) - [@tanstack/query-example-react-nextjs-app-prefetching](https://pkg.pr.new/template/17f32134-7991-48d0-baac-8670c874318f) - [@tanstack/query-example-nextjs-suspense-streaming](https://pkg.pr.new/template/95f180a2-0346-43a6-88c3-7dc34c37f0d1) - [@tanstack/query-example-react-offline](https://pkg.pr.new/template/82ba7871-bf0b-4526-a5dd-b35137c09615) - [@tanstack/query-example-react-optimistic-updates-cache](https://pkg.pr.new/template/113c38c1-c39b-4228-91dd-f0756240ea16) - [@tanstack/query-example-react-optimistic-updates-ui](https://pkg.pr.new/template/4d55d384-7d5a-4294-9ec9-256efc997cea) - [@tanstack/query-example-react-pagination](https://pkg.pr.new/template/412d4fdf-6870-4c51-a148-0a27b5f94ca0) - [@tanstack/query-example-react-playground](https://pkg.pr.new/template/5b661baa-5fc6-4a3e-86bb-4f8a39088c34) - [@tanstack/query-example-react-prefetching](https://pkg.pr.new/template/69460f9d-123f-46fb-8bf8-60f7e31880b1) - [@tanstack/query-example-react-react-native](https://pkg.pr.new/template/23ee62ed-7758-4e2e-94f0-e5b03b78001c) - [@tanstack/query-example-react-router](https://pkg.pr.new/template/a1046a48-5509-45a0-bced-87897a6b3851) - [@tanstack/query-example-react-rick-morty](https://pkg.pr.new/template/098c9899-2632-4380-8edb-2a3e7d488f36) - [@tanstack/query-example-react-shadow-dom](https://pkg.pr.new/template/ddda2d60-df74-41af-8d16-528a179fb5e3) - [@tanstack/query-example-react-simple](https://pkg.pr.new/template/e549e42b-ce14-4337-8835-5ec0b38be803) - [@tanstack/query-example-react-star-wars](https://pkg.pr.new/template/1b0b9fb7-997b-49d9-9c0c-bc4b89124223) - [@tanstack/query-example-react-suspense](https://pkg.pr.new/template/55247a6c-0eb2-426b-9b5c-6d5d66adc029) - [@tanstack/query-example-svelte-auto-refetching](https://pkg.pr.new/template/d35a1b2e-006c-4eb5-98fa-bfe2ce0d7c6c) - [@tanstack/query-example-svelte-basic](https://pkg.pr.new/template/c9aca548-d97c-44f8-b525-64d79cf9f30e) - [@tanstack/query-example-svelte-load-more-infinite-scroll](https://pkg.pr.new/template/11204590-b861-44af-a8fb-592f74cfb0a5) - [@tanstack/query-example-svelte-optimistic-updates](https://pkg.pr.new/template/ce7ebb7b-beb2-47bb-a8e6-88329352e97f) - [@tanstack/query-example-svelte-playground](https://pkg.pr.new/template/26656d88-7582-4861-aa75-765143dc6e0b) - [@tanstack/query-example-svelte-simple](https://pkg.pr.new/template/c41a3e48-3f26-4f3d-b95a-d1dd26872c2d) - [@tanstack/query-example-svelte-ssr](https://pkg.pr.new/template/278fedf9-38c8-4cc6-8370-572645f04f9e) - [@tanstack/query-example-svelte-star-wars](https://pkg.pr.new/template/2f44efb2-11fb-4dbe-ae22-7311f54ff383) - [@tanstack/query-example-vue-2.6-basic](https://pkg.pr.new/template/0926754b-2d2a-48ec-a557-bc5683a07da9) - [@tanstack/query-example-vue-2.7-basic](https://pkg.pr.new/template/dcad3845-95de-4336-8ff5-2e761d3fc37e) - [@tanstack/query-example-vue-basic](https://pkg.pr.new/template/a303bfa7-5293-47e4-ad27-03585c5d8c30) - [@tanstack/query-example-vue-dependent-queries](https://pkg.pr.new/template/29619807-5ba6-40b7-aafb-4363af10fa69) - [@tanstack/query-example-vue-nuxt3](https://pkg.pr.new/template/28da7bb3-019c-42f1-8ab2-0808b620f7a0) - [@tanstack/query-example-vue-persister](https://pkg.pr.new/template/419e3acb-9e01-4279-831e-1130e9678fb7) - [@tanstack/query-example-vue-simple](https://pkg.pr.new/template/de310060-3fcc-44b3-bc76-64a20d8d04e7)

@tanstack/angular-query-devtools-experimental

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

@tanstack/angular-query-experimental

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

@tanstack/eslint-plugin-query

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

@tanstack/query-async-storage-persister

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

@tanstack/query-broadcast-client-experimental

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

@tanstack/query-core

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

@tanstack/query-devtools

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

@tanstack/query-persist-client-core

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

@tanstack/query-sync-storage-persister

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

@tanstack/react-query

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

@tanstack/react-query-devtools

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

@tanstack/react-query-next-experimental

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

@tanstack/react-query-persist-client

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

@tanstack/solid-query

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

@tanstack/solid-query-devtools

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

@tanstack/svelte-query

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

@tanstack/solid-query-persist-client

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

@tanstack/svelte-query-persist-client

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

@tanstack/svelte-query-devtools

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

@tanstack/vue-query-devtools

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

@tanstack/vue-query

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

commit: 1dbb0bf