Skip to content

chore: remove openapi-fetch + react query example #2086

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

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/ja/openapi-fetch/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ openapi-fetchを他のフレームワークやライブラリと組み合わせ

## React + React Query

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

This file was deleted.

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

This file was deleted.

This file was deleted.

Loading
Loading