Repository navigation
Apollo Client から TanStack Query への移行経緯とパフォーマンス改善理由をドキュメント化 - #6419
Conversation
Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01HFAxgF7LKrBmSipfTxHCb9
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughApollo ClientからTanStack Queryへの移行方針を記録したドキュメントを追加し、キャッシュ戦略、再取得方法、互換API、性能差の要因を説明しています。READMEから新規ドキュメントへリンクしています。 ChangesGraphQL移行ドキュメント
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/apollo-to-react-query-migration.md`:
- Around line 187-188: Remove the trailing </content> and </invoke> tags from
the end of the migration document, leaving the Markdown content intact and
avoiding unauthorized inline HTML.
- Around line 143-149: Update the TanStack Query performance comparison in the
documented sections around the cache-write and read-cost claims to acknowledge
default structuralSharing: JSON-compatible results still undergo recursive
comparison and reference reuse. Separate the removal of Apollo normalization,
freezing, and broadcast costs from the remaining TanStack Query comparison
overhead, and avoid absolute claims such as O(1), reference-only storage, or
elimination of graph traversal.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a8e3d2f8-1d2d-453e-a66a-37caeadfb3ef
📒 Files selected for processing (2)
docs/README.mddocs/apollo-to-react-query-migration.md
Co-Authored-By: Claude Fable 5 <[email protected]>
Fixes Applied SuccessfullyFixed 1 file(s) based on 2 CodeRabbit feedback item(s). Files modified:
Commit: The latest autofix changes are on the |
概要
Apollo Client から TanStack Query (React Query) + graphql-request への移行 (#6210) について、「キャッシュ戦略をどう扱ったか」「なぜ体感で大きく高速化したのか」を後から追えるよう開発者向けドキュメントとして残す。
変更の種類
変更内容
docs/apollo-to-react-query-migration.mdを新規追加。移行前後のキャッシュ構成(Apollo のtypePolicies/keyFields: falseと現行QueryClientのstaleTime: Infinity)、keyFields: falseを移植しなかった理由、強制再取得箇所、互換フックを整理。docs/README.mdのドキュメント一覧に新規ドキュメントへのリンクを追加。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
graphql-requestへの移行内容を記録した資料を追加しました。