File: withChangeTracking.md | Updated: 11/15/2025
Search...
+ K
Auto
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide
Documentation
Framework
React
Version
Latest
Search...
+ K
Menu
Getting Started
Guides
Collections
Frameworks
Community
API Reference
Framework
React
Version
Latest
Menu
Getting Started
Guides
Collections
Frameworks
Community
API Reference
On this page
Copy Markdown
Function: withChangeTracking()
==============================
ts
function withChangeTracking<T>(target, callback): Record<string | symbol, unknown>;
function withChangeTracking<T>(target, callback): Record<string | symbol, unknown>;
Defined in: packages/db/src/proxy.ts:895
Creates a proxy for an object, passes it to a callback function, and returns the changes made by the callback
Type Parameters
---------------
### T
T extends object
Parameters
----------
### target
T
The object to proxy
(proxy) => void
Function that receives the proxy and can make changes to it
Record<string | symbol, unknown>
The changes made to the object
