本页还没有译文
本页 15 段还没译成Português (BR),下面显示的是英文原文。withFlatChangeTracking
还没翻译译自英文(tanstack.com)本页 15 段都还没译
function withFlatChangeTracking<T>(
targets,
callback,
asArray): Record<string, unknown>[] | undefined;Defined in: packages/db/src/proxy.ts:911
Change tracking for flat rows without proxies. A draft is a shallow copy, and its changes are the fields that differ from the row afterwards under the same equality the draft proxy uses for primitives. Returns undefined when any row has a nested object, a getter, a symbol key, or a class prototype, so the caller falls back to the proxy.
Type Parameters
T
T extends object
Parameters
targets
T[]
callback
(drafts) => void
asArray
boolean
Returns
Record<string, unknown>[] | undefined
AI 翻译查看英文原文