Skip to content

Commit

Permalink
chore: remove openapi-fetch + react query example
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow committed Jan 6, 2025
1 parent 2bffe2a commit edeed27
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 704 deletions.
8 changes: 4 additions & 4 deletions docs/ja/openapi-fetch/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ title: openapi-fetch 使用例

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

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

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

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

## Next.js

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

---

他の例も歓迎しています!あなたの使用例を[PRとして提出](https://github.com/openapi-ts/openapi-typescript/pulls)してください。
他の例も歓迎しています!あなたの使用例を[PRとして提出](https://github.com/openapi-ts/openapi-typescript/pulls)してください。
7 changes: 5 additions & 2 deletions docs/openapi-fetch/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ Example code of using openapi-fetch with other frameworks and libraries.

## React + React Query

[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.
See [openapi-react-query](/openapi-react-query/)

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

See [swr-openapi](/swr-openapi/)

## Next.js

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

---

Additional examples are always welcome! Please [open a PR](https://github.com/openapi-ts/openapi-typescript/pulls) with your examples.
6 changes: 4 additions & 2 deletions docs/zh/openapi-fetch/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ title: openapi-fetch 示例

## React + React Query

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

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

See [swr-openapi](/swr-openapi/)

## Next.js

Expand Down
12 changes: 0 additions & 12 deletions packages/openapi-fetch/examples/react-query/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions packages/openapi-fetch/examples/react-query/index.html

This file was deleted.

22 changes: 0 additions & 22 deletions packages/openapi-fetch/examples/react-query/package.json

This file was deleted.

35 changes: 0 additions & 35 deletions packages/openapi-fetch/examples/react-query/src/hooks/queries.ts

This file was deleted.

52 changes: 0 additions & 52 deletions packages/openapi-fetch/examples/react-query/src/index.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions packages/openapi-fetch/examples/react-query/src/lib/api/index.ts

This file was deleted.

Loading

0 comments on commit edeed27

Please sign in to comment.