-
Notifications
You must be signed in to change notification settings - Fork 77
feat(query-db-collection): add meta support to QueryCollectionConfig #363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 01ba120 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -0,0 +1,5 @@ | |||
--- | |||
"@tanstack/query-db-collection": patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if I'm mistaken, but it appears the @tanstack/query-db-collection package version is currently locked to 0.1.x, based on the previous release note. So I added a patch changeset
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup this is correct 👍
More templates
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the great PR!
- Changed writeBatch from accepting an array of operations to accepting a callback function - Write operations called within the callback are automatically batched together - This provides a more intuitive API similar to database transactions - Added comprehensive documentation for Query Collections including direct writes feature - Documented meta support feature from PR #363 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Summary
meta
support toQueryCollectionConfig
per Expose QueryFunctionContext properties (signal, meta) in query-db-collection #350meta
is passed toqueryFn
contextTest Plan
Docs
meta
example to querycollectionconfig.md