DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/functions/createChangeProxy.md
createChangeProxy
ts
function createChangeProxy<T>(target, parent?): object;Defined in: packages/db/src/proxy.ts:376
Creates a proxy that tracks changes to the target object
Type Parameters#
T#
T extends Record<string | symbol, any>
Parameters#
target#
T
The object to proxy
parent?#
ChangeParent
Optional parent information
Returns#
object
An object containing the proxy and a function to get the changes
getChanges()#
ts
getChanges: () => Record<string | symbol, any>;Returns#
Record<string | symbol, any>
proxy#
ts
proxy: T;