Open History to see the last commit
1---
2id: withArrayChangeTracking
3title: withArrayChangeTracking
4---
5
6```ts
7function withArrayChangeTracking<T>(targets, callback): Record<string | symbol, unknown>[];
8```
9
10Defined in: [packages/db/src/proxy.ts:826](https://github.com/TanStack/db/blob/main/packages/db/src/proxy.ts#L826)
11
12Creates proxies for an array of objects, passes them to a callback function,
13and returns the changes made by the callback for each object
14
15## Type Parameters
16
17### T
18
19`T` *extends* `object`
20
21## Parameters
22
23### targets
24
25`T`[]
26
27Array of objects to proxy
28
29### callback
30
31(`proxies`) => `void`
32
33Function that receives the proxies and can make changes to them
34
35## Returns
36
37`Record`\<`string` \| `symbol`, `unknown`\>[]
38
39Array of changes made to each object