docs(preact-query): cross-link hooks with their options factories via '@see' and move the infinite-query caveat to '@remarks' - #11289
Conversation
|
View your CI Pipeline Execution ↗ for commit e6dd0cc
☁️ Nx Cloud last updated this comment at |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe change adds JSDoc cross-references between Preact option helpers and hooks. It adds infinite-query remarks, and updates generated reference pages with matching links and source-line references. ChangesPreact API documentation
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This change only improves documentation cross-links and the placement of an infinite-query caveat; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Title checkExplanation The title clearly summarizes the main documentation changes: adding cross-links between hooks and option factories and moving the infinite-query caveat to Full details: Description checkExplanation The description includes the required Changes, Checklist, and Release Impact sections. It explains the documentation updates, records validation steps, confirms checklist completion, and identifies the change as docs-only with no release impact. Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 6 files. (6 skipped: 6 unsupported.) ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
🎯 Changes
Adds TypeDoc
@seecross-links between each hook and its options factory, in both directions, for the three pairs that have one:useQuery↔queryOptions,useInfiniteQuery↔infiniteQueryOptions, anduseMutation↔mutationOptions. Applied consistently across every overload of each function so the cross-link isn't missing from some overloads and present in others.Also moves the
useInfiniteQuerycaveat about imperative fetch calls interfering with the default refetch behavior into a@remarksblock, and applies it to all three overloads (previously only the third had it in prose). TypeDoc renders@remarksas its own "Remarks" section, separating incidental caveats from the primary description.Verified with
pnpm run generate-docsthat both tags render as expected —@seeas a "See" section with a working link to the target page,@remarksas a "Remarks" section — and thatpnpm --filter @tanstack/preact-query run test:typesstill passes.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit