The data that was changed and is pointed to by ptr
The JSON pointer string indicating where in the root object the change occurred. In the case of callbacks
registered on "/", ptr will be an array of JSON pointers into the data
field represents the root object.
Optional
removed: boolean(optional) A boolean indicating whether the data was removed. true
for delete, false
for set.
Optional
op: Op(optional) A string describing the operation. Can be "set"
, "delete"
, or "forceSetInternal"
.
Generated using TypeDoc
A callback function that is triggered when data changes.
This callback supports both the legacy
removed
boolean parameter and the newop
parameter to avoid breaking existing clients while allowing for more descriptive operations.removed
is provided, it indicates whether the data was removed (true
for delete,false
for set).op
is provided, it specifies the operation performed on the data:"set"
: The data was set or updated."delete"
: The data was deleted."forceSetInternal"
: A forced internal set operation was performed.Both
removed
andop
are optional. If both are provided,op
takes precedence in interpreting the operation.