github TanStack/db @tanstack/db-sqlite-persistence-core@0.4.11

Patch Changes

  • Show the right ordered window after an on-demand Query Collection refetches. When a refetch changes a page that has a later page after it, or moves a page's end earlier, a row could sort past the page's end and be in neither result. Query DB now reports that through the new sync-adapter call invalidateLoadedSubsets(), and each ordered live query and Effect re-establishes its window with a bounded repair. A window that lies inside its own first page, such as a top-N list after an insert, skips the repair. This covers utils.refetch() and Query refetches such as invalidateQueries. An ordering repair that overlaps in-flight page or tie work now reads a bounded prefix instead of the full source. The SQLite persistence wrapper forwards the new call. Ordered live queries also keep paging when a source answers a request synchronously from its cache, and a finished repair no longer leaves a second first page that every later refetch re-reads. (#2154)

  • Updated dependencies [468db85, 3c481f6, a09ba67, 92b11b0, fcd539a, 2c83fdc]:

    • @tanstack/db@0.15.1

Don't miss a new db release

NewReleases is sending notifications on new releases.