Skip to content
Source
Sign inSign up
TanStack/db

fix(db): await asynchronous collection cleanup #1895

MergedKyleAMathewsmerged 18 commits intomain fromrefs/pull/1895/headmerged by KyleAMathews

Showing 19 changed files with 8 additions and 0 deletions (loading 18).

x
0 of 19 viewed, 19 left
8 additions and 0 deletions.changeset/fix-async-cleanup-settlement.mdAdded
View file
@@ -0,0 +1,8 @@
+---
+'@tanstack/db': patch
+'@tanstack/db-sqlite-persistence-core': patch
+'@tanstack/powersync-db-collection': patch
+'@tanstack/query-db-collection': patch
+---
+​
+Wait for asynchronous adapter cleanup before a collection reaches `cleaned-up` or starts a replacement sync run. Preserve cleanup settlement through SQLite persistence, PowerSync, and Query Collection wrappers, including cleanup hooks acquired before cleanup starts and resource disposal failures.
docs/contributing/oracle-reviews/issue-1891-async-cleanup.mdAdded
View file
Loading the diff
docs/contributing/glossary.mdModified
View file
Loading the diff
docs/contributing/oracle-coverage.mdModified
View file
Loading the diff
packages/db/src/collection/index.tsModified
View file
Loading the diff
packages/db/src/collection/lifecycle.tsModified
View file
Loading the diff
packages/db/src/collection/sync.tsModified
View file
Loading the diff
packages/db/src/types.tsModified
View file
Loading the diff