docs: document materialize() helper for includes subqueries#1580
docs: document materialize() helper for includes subqueries#1580kevin-dp wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds documentation for the Changesmaterialize() helper documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
More templates
@tanstack/angular-db
@tanstack/browser-db-sqlite-persistence
@tanstack/capacitor-db-sqlite-persistence
@tanstack/cloudflare-durable-objects-db-sqlite-persistence
@tanstack/db
@tanstack/db-ivm
@tanstack/db-sqlite-persistence-core
@tanstack/electric-db-collection
@tanstack/electron-db-sqlite-persistence
@tanstack/expo-db-sqlite-persistence
@tanstack/node-db-sqlite-persistence
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/react-native-db-sqlite-persistence
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/tauri-db-sqlite-persistence
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
- Add a "materialize" subsection to the Includes guide in live-queries.md with array vs singleton (findOne) examples and notes on reactivity and expression-context restrictions. - Add the materialize() entry to docs/reference/index.md. The generated functions/materialize.md page is produced by the release workflow's generate-docs step, so it is not committed here. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
b99158d to
c5af44a
Compare
Summary
Adds documentation for the
materialize()helper introduced in #1504. As flagged in this comment, the helper was shipped but not yet documented.### materializesubsection under Includes indocs/guides/live-queries.md, sitting next to the existing### toArraysubsection. Covers the array vs. singleton (findOne()) split, type inference, reactivity matchingtoArray(), and the expression-context restriction.materializeentry todocs/reference/index.md.The generated
docs/reference/functions/materialize.mdpage is intentionally not included here. The release workflow (.github/workflows/release.yml) runspnpm generate-docson publish and opens a separatedocs: regenerate API documentationPR, so committing generated reference pages from a feature PR creates conflicts. This matches the pattern used in #1544, which also added a reference-index entry forcaseWhenwithout committing its generated page.Test plan
materializeunder## Functions🤖 Generated with Claude Code
Summary by CodeRabbit
materialize()helper and its usage patterns