Skip to main content

createChangeProxy

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

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()

getChanges: () => Record<string | symbol, any>;

Returns

Record<string | symbol, any>

proxy

proxy: T;