Skip to main content

withAcceptedReceipt

还没翻译译自英文(tanstack.com)本页 12 段都还没译

function withAcceptedReceipt(visible, accepted): Promise<void>;

Defined in: packages/db/src/sync-receipt.ts:14

Internal

Attaches the moment a sync transaction was accepted to the receipt that resolves when it is visible. A wrapping sync, such as persistence, accepts after its durable step.

Adapter infrastructure, not an application API.

Parameters

visible

Promise<void>

accepted

SyncAppliedReceipt

Returns

Promise<void>