github TanStack/db @tanstack/db@0.4.8

latest releases: @tanstack/vue-db@0.0.63, @tanstack/solid-db@0.1.30
2 days ago

Patch Changes

  • Fixed critical bug where optimistic mutations were lost when their async handlers completed during a truncate operation. The fix captures a snapshot of optimistic state when truncate() is called and restores it during commit, then overlays any still-active transactions to handle late-arriving mutations. This ensures client-side optimistic state is preserved through server-initiated must-refetch scenarios. (#659)

  • Refactored live queries to execute eagerly during sync. Live queries now materialize their results immediately as data arrives from source collections, even while those collections are still in a "loading" state, rather than waiting for all sources to be "ready" before executing. (#658)

Don't miss a new db release

NewReleases is sending notifications on new releases.