Skip to main content

TransactionConfig

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

Defined in: packages/db/src/types.ts:189

Type Parameters

T

T extends object = Record<string, unknown>

Properties

autoCommit?

optional autoCommit: boolean;

Defined in: packages/db/src/types.ts:193


id?

optional id: string;

Defined in: packages/db/src/types.ts:191

Unique identifier for the transaction


metadata?

optional metadata: Record<string, unknown>;

Defined in: packages/db/src/types.ts:196

Custom metadata to associate with the transaction


mutationFn

mutationFn: MutationFn<T>;

Defined in: packages/db/src/types.ts:194