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

createArrayChangeProxy.md

48 lines707 Bytes

function createArrayChangeProxy<T>(targets): object;

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

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[];