github TanStack/db @tanstack/db@0.5.15

latest releases: @tanstack/rxdb-db-collection@0.1.47, @tanstack/solid-db@0.1.58, @tanstack/query-db-collection@1.0.11...
7 hours ago

Patch Changes

  • fix: prevent duplicate inserts from reaching D2 pipeline in live queries (#1054)

    Added defensive measures to prevent duplicate INSERT events from reaching the D2 (differential dataflow) pipeline, which could cause items to not disappear when deleted (due to multiplicity going from 2 to 1 instead of 1 to 0).

    Changes:

    • Added sentToD2Keys tracking in CollectionSubscriber to filter duplicate inserts at the D2 pipeline entry point
    • Fixed includeInitialState handling to only pass when true, preventing internal lazy-loading subscriptions from incorrectly disabling filtering
    • Clear sentToD2Keys on truncate to allow re-inserts after collection reset

Don't miss a new db release

NewReleases is sending notifications on new releases.