Skip to main content

createArrayChangeProxy

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

function createArrayChangeProxy<T>(targets): object;

Defined in: packages/db/src/proxy.ts:840

Creates proxies for an array of objects and tracks changes to each

Type Parameters

T

T extends object

Parameters

targets

T[]

Array of objects to proxy

Returns

object

An object containing the array of proxies and a function to get all changes

getChanges()

getChanges: () => Record<string | symbol, unknown>[];

Returns

Record<string | symbol, unknown>[]

proxies

proxies: T[];