docs: Add guide for multiple pending transactions#1215
Open
KyleAMathews wants to merge 2 commits intomainfrom
Open
docs: Add guide for multiple pending transactions#1215KyleAMathews wants to merge 2 commits intomainfrom
KyleAMathews wants to merge 2 commits intomainfrom
Conversation
Adds a subsection to Mutation Lifecycle explaining how multiple optimistic updates to the same item are layered, with the most recent transaction taking priority for display state. https://claude.ai/code/session_01HruHi63EH2HhdQy86tWteX
Clarifies that: - Optimistic layering operates at the item level, not individual fields - The draft in update() reflects all pending optimistic changes from all transactions, enabling mutations to build on each other https://claude.ai/code/session_01HruHi63EH2HhdQy86tWteX
|
More templates
@tanstack/angular-db
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-db-collection
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
Contributor
|
Size Change: 0 B Total Size: 92 kB ℹ️ View Unchanged
|
Contributor
|
Size Change: 0 B Total Size: 3.7 kB ℹ️ View Unchanged
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Changes
Added documentation explaining how multiple pending transactions work in the mutations guide. This section clarifies the layering behavior when users make rapid sequential mutations to the same item before earlier ones have synced back from the server.
The new section includes:
✅ Checklist
pnpm test:pr.🚀 Release Impact
https://claude.ai/code/session_01HruHi63EH2HhdQy86tWteX