docs(query-db-collection): document query option compatibility#1653
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughDocumentation for ChangesQuery option compatibility docs
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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: |
|
Size Change: 0 B Total Size: 125 kB ℹ️ View Unchanged
|
|
Size Change: 0 B Total Size: 4.22 kB ℹ️ View Unchanged
|
kevin-dp
left a comment
There was a problem hiding this comment.
I don't think we need a changeset since this PR only touches docs.
Documents the current TanStack Query option compatibility surface for Query Collections. Users can now see which options are forwarded, how
QueryClient.defaultOptionsinteract with omitted options, which fields are adapter-owned, and which common Query options are not currently exposed.Approach
This keeps the change docs-only and focused in the existing Query Collection guide:
gcTimeto the documented forwarded Query options.metaare only passed when explicitly defined, soQueryClient.defaultOptionscan still apply.queryKey,queryFn,select,queryClient,syncMode,getKey, and mutation handlers from ordinary Query option pass-through.queryCollectionOptions.Key invariants
Non-goals
Verification
Files changed
.changeset/document-query-option-compatibility.md— records the user-facing Query Collection docs update.docs/collections/query-collection.md— documents the current Query option compatibility categories.Related
Summary by CodeRabbit
queryCollectionOptionsis not a fullQueryObserverOptionspass-through.structuralSharingconfigurations).