Skip to content

Commit 8b6eecc

Browse files
committed
chore: remove openapi-fetch + react query example
1 parent 39f9b2f commit 8b6eecc

File tree

14 files changed

+14
-702
lines changed

14 files changed

+14
-702
lines changed

docs/ja/openapi-fetch/examples.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ title: openapi-fetch 使用例
66

77
openapi-fetchを他のフレームワークやライブラリと組み合わせて使用するコード例
88

9-
## React + React Query
9+
See [openapi-react-query](/ja/openapi-react-query)
1010

11-
[React Query](https://tanstack.com/query/latest) は、Reactでopenapi-fetchを使用するための理想的なラッパーです。わずか13 kBのサイズで、クライアントサイドのキャッシュ機能を提供し、クライアントの負担を増やすことなく利用できます。また、その優れた型推論機能により、openapi-fetchの型が最小限の設定で完全に保持されます。
11+
## React + SWR
1212

13-
[GitHubでコード例を見る](https://github.com/openapi-ts/openapi-typescript/tree/main/packages/openapi-fetch/examples/react-query)
13+
See [swr-openapi](/ja/swr-openapi)
1414

1515
## Next.js
1616

@@ -34,4 +34,4 @@ _注: SvelteKitを使用しない場合でも、`src/routes/+page.svelte` 内の
3434

3535
---
3636

37-
他の例も歓迎しています!あなたの使用例を[PRとして提出](https://github.com/openapi-ts/openapi-typescript/pulls)してください。
37+
他の例も歓迎しています!あなたの使用例を[PRとして提出](https://github.com/openapi-ts/openapi-typescript/pulls)してください。

docs/openapi-fetch/examples.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ Example code of using openapi-fetch with other frameworks and libraries.
88

99
## React + React Query
1010

11-
[React Query](https://tanstack.com/query/latest) is a perfect wrapper for openapi-fetch in React. At only 13 kB, it provides clientside caching without too much client weight in return. And its stellar type inference preserves openapi-fetch types perfectly with minimal setup.
11+
See [openapi-react-query](/openapi-react-query)
1212

13-
[View a code example in GitHub](https://github.com/openapi-ts/openapi-typescript/tree/main/packages/openapi-fetch/examples/react-query)
13+
## React + SWR
14+
15+
See [swr-openapi](/swr-openapi)
1416

1517
## Next.js
1618

@@ -33,4 +35,5 @@ _Note: if you’re using Svelte without SvelteKit, the root example in `src/rout
3335
[View a code example in GitHub](https://github.com/openapi-ts/openapi-typescript/tree/main/packages/openapi-fetch/examples/vue-3)
3436

3537
---
38+
3639
Additional examples are always welcome! Please [open a PR](https://github.com/openapi-ts/openapi-typescript/pulls) with your examples.

docs/zh/openapi-fetch/examples.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ title: openapi-fetch 示例
88

99
## React + React Query
1010

11-
[React Query](https://tanstack.com/query/latest) 是在 React 中完美封装 openapi-fetch 的工具。仅有 13 kB 的大小,提供了客户端缓存而没有太多的客户端负担。其出色的类型推断通过最小的设置完美地保留了 openapi-fetch 的类型。
11+
See [openapi-react-query](/zh/openapi-react-query)
1212

13-
[在 GitHub 中查看代码示例](https://github.com/openapi-ts/openapi-typescript/tree/main/packages/openapi-fetch/examples/react-query)
13+
## React + SWR
14+
15+
See [swr-openapi](/zh/swr-openapi)
1416

1517
## Next.js
1618

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
# openapi-fetch + React Query
22

3-
Example of using openapi-fetch with [React Query](https://tanstack.com/query/latest).
4-
5-
## Setup
6-
7-
```sh
8-
pnpm i
9-
pnpm run dev
10-
```
11-
12-
You’ll see the server running at `localhost:5173`
3+
Moved to [openapi-react-query](../../openapi-react-query)

packages/openapi-fetch/examples/react-query/index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/openapi-fetch/examples/react-query/package.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/openapi-fetch/examples/react-query/src/hooks/queries.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/openapi-fetch/examples/react-query/src/index.tsx

Lines changed: 0 additions & 52 deletions
This file was deleted.

packages/openapi-fetch/examples/react-query/src/lib/api/index.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)