-
Notifications
You must be signed in to change notification settings - Fork 255
feat(db): shared live-query window controller (RFC #1623 phase 5) #1675
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
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
0bcc429
feat(db): shared live-query observer + migrate all five adapters
kevin-dp e957121
fix(db): make observer onFirstReady detach-safe
kevin-dp c05a726
fix(db): address observer/react lifecycle review findings
kevin-dp fd3c87d
fix(react-db): don't dispose the observer in an unmount effect (Stric…
kevin-dp 7577d40
test(db): cover live-query keyed-state invariant on recompile
kevin-dp 2a0679e
fix(solid-db): clear keyed state before subscribing to a new collection
kevin-dp 593818a
feat(db): republish ordered live queries on an order-only move (RFC #…
kevin-dp 2ea8f1e
ci: apply automated fixes
autofix-ci[bot] d84fb7b
refactor(db): compare key sequence directly for layoutRevision + fix doc
kevin-dp d762855
ci: apply automated fixes
autofix-ci[bot] 43f1a7d
test(db): add failing regressions for Kyle's review findings
kevin-dp c9ec751
fix(db): coalesce layout publications and cover ordered includes chil…
kevin-dp ff339d8
test(db): guard order-only moves in deeply-nested ordered includes
kevin-dp 4634ea5
ci: apply automated fixes
autofix-ci[bot] 877bc23
feat(db): shared live-query window controller (RFC #1623 phase 5)
kevin-dp fa26a67
ci: apply automated fixes
autofix-ci[bot] ab9b37e
fix(react-db): restore useLiveQuery type-only import for return type
kevin-dp 8d82827
fix(react-db): react to runtime pageSize changes + restore window-mis…
kevin-dp 5d50a0c
ci: apply automated fixes
autofix-ci[bot] 6db6b75
fix(db): FIFO non-reentrant observer dispatch over subscription records
kevin-dp 7a86eae
fix(db): release the collection subscription on dispose during initia…
kevin-dp 482c82b
fix(db): seed late observer subscribers; reject subscribe after dispose
kevin-dp d0875e4
fix(db): drive observer snapshots from a collection-owned state revision
kevin-dp 37b5eea
test(angular-db): align the mock collection with the real collection …
kevin-dp eeafe17
fix(db): publish collection status changes through the canonical path
kevin-dp 4932b73
fix(db): per-consumer initial-state policy; lazy snapshot materializa…
kevin-dp 52b11e9
fix(db): remove deferInitialNotify — event reordering gone by constru…
kevin-dp 5e92926
fix(db): make observer construction inert — sync activates on first s…
kevin-dp 58bd2c1
fix(solid-db): generation-guard the resource's async continuations
kevin-dp b24d163
docs(db): mark the observer as internal/unstable; honest changeset
kevin-dp 62cb87b
Merge branch 'main' into refactor/live-query-observer
KyleAMathews 650ccb7
fix(db): address live query observer review
tannerlinsley c4a72f9
fix(db): preserve wholesale consistency reads
tannerlinsley c91af81
fix(db): capture granular initial loads
tannerlinsley df9403a
merge: update ordered layout contract for observer refactor
tannerlinsley cab79fb
Merge phase4/ordered-layout-contract into phase5/window-controller
tannerlinsley 6db5b1a
fix(db): harden live query window subscriptions
tannerlinsley 619c3a3
fix(db): bind layout revisions to sync transactions
tannerlinsley 8e2f777
Merge phase4 layout transaction fix
tannerlinsley da2297b
Merge main into phase4/ordered-layout-contract
tannerlinsley c27d572
fix(db): address post-merge review feedback
tannerlinsley 1ca1a07
Merge final phase4 updates
tannerlinsley f994c55
Merge main into phase5/window-controller
tannerlinsley 1bf883f
fix(db): harden live query window ownership
tannerlinsley d704b95
fix(db): close window controller race gaps
tannerlinsley ed51adb
fix(db): preserve live query observer invariants
KyleAMathews e730980
fix(react-db): handle pagination load failures
KyleAMathews b7172ea
fix(db): harden live query window coordination
KyleAMathews 4c44bcd
docs: update window controller release notes
KyleAMathews File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| '@tanstack/db': patch | ||
| '@tanstack/react-db': patch | ||
| --- | ||
|
|
||
| Add the unstable, internal `createLiveQueryWindowController` primitive for | ||
| forward pagination. It coordinates collection-scoped window leases, commits | ||
| pages only after subset loads succeed, restores windows after failures and | ||
| cleanup, and lets React's `useLiveInfiniteQuery` become a thin binding without | ||
| changing its public API or resetting pages for structurally equal dependencies. | ||
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.