Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

withCollectionSyncConfigCleanup.md

34 lines511 Bytes

function withCollectionSyncConfigCleanup<TSync>(sync, cleanup): TSync;

Defined in: packages/db/src/collection/index.ts:96

Internal

Registers work owned before an adapter sync starts.

Type Parameters

TSync

TSync extends object

Parameters

sync

TSync

cleanup

() => void

Returns

TSync