docs(preact-query): add 'select' example to 'useQuery' - #11343
Conversation
|
View your CI Pipeline Execution ↗ for commit fb0e81e
☁️ 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 (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe Preact ChangesuseQuery
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This documentation-only change adds a localized 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 1 files. (1 skipped: 1 unsupported.) Full details: Description checkExplanation The description follows the required template, explains the documentation change and motivation, records documentation generation, completes the checklist, and identifies the change as having no release impact. ✨ 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 Preview1 package(s) bumped directly, 24 bumped as dependents. 🟩 Patch bumps
|
size-limit report 📦
|
🎯 Changes
useQuery'sselectoption had no@exampleshowing its usage, despite the other 8 examples on this overload coveringinitialData,isPending/isError,enabled,skipToken, seeding, and pagination.useQuery.ts: added an example showingselectderiving anumber(post count) from the cachedPost[]— a type-changing transform, so the example demonstrates the reasonselectexists (TDatacan differ from what's cached) rather than a subset that would render the same as the basic example above it. Placed right after the basic example, sinceselectis a more commonly used option than the dependent-query/pagination examples that follow.docs/framework/preact/reference/functions/useQuery.mdwithpnpm run generate-docs✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit
useQueryoverload.selectoption example before the dependent-query examples.