Current proxy being operated on
Registers a watcher for a property along with a listener function. The listener function is invoked when changes to that property are detected.
An expression to be watched in the context of this model.
OptionallistenerFn: ListenerFunctionA function to execute when changes are detected on watched context.
Optionallazy: boolean = falseA flag to indicate if the listener should be invoked immediately. Defaults to false.
Intercepts property access on the target object. It checks for specific
properties (watch and sync) and binds their methods. For other properties,
it returns the value directly.
The target object.
The name of the property being accessed.
The proxy object being invoked
watch or sync.Intercepts and handles property assignments on the target object. If a new value is an object, it will be recursively proxied.
The target object.
The name of the property being set.
The new value being assigned to the property.
The proxy intercepting property access
Scope class for the Proxy. It intercepts operations like property access (get) and property setting (set), and adds support for deep change tracking and observer-like behavior.