Repository navigation
fix(examples/react/infinite-query-with-max-pages): extract a typed 'fetchProjects' for 'queryFn' - #11965
Conversation
…etchProjects' for 'queryFn'
|
|
View your CI Pipeline Execution ↗ for commit b609a28
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview2 package(s) bumped directly, 23 bumped as dependents. 🟩 Patch bumps
|
size-limit report 📦
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The fetch extraction preserves the example’s existing cursor-based behavior and matches the API response, so no user-facing regression is established. The change is ready to merge after normal checks. Pre-merge checks |
|
🎯 Changes
infinite-query-with-max-pagesreturnsresponse.json()(any) from an inlinequeryFn, so the pages are untyped and type-checking fails on the implicitanyinpage.data.map((project) => ...).fetchProjects, typed with aProjectsPageresponse type (previousId/nextIdarenumber | null, matching the API route), and pass it asqueryFn.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit