Readonly
addAdds a listener that will be called when this binding changes.
Adds a listener that will be called when this binding changes.
a function that may be used to remove the added listener.
useBindingEffect
and BindingsConsumer
useBindingEffect
and BindingsConsumer
a function that may be used to remove the added listener.
Readonly
getthe value
Readonly
getEvery time the value is changed, the change uid is updated
Every time the value is changed, the change uid is updated
Readonly
idA technical, but human-readable ID, which isn't guaranteed to be unique
Readonly
isA marker indicating that this is a binding type
Readonly
istrue
if the binding is locked
true
if the binding is locked
Readonly
istrue
if this binding has been marked as being modified
true
if this binding has been marked as being modified
Readonly
lockIncrements the lock count and returns a method to decrement it. A binding is locked if its lock
count is > 0
. When a binding is locked, mutating calls (reset
/set
/setRaw
) won't have an immediate effect. However, if a
mutating call is made on a locked binding, the change will be applied once the binding becomes unlocked.
Increments the lock count and returns a method to decrement it. A binding is locked if its lock
count is > 0
. When a binding is locked, mutating calls (reset
/set
/setRaw
) won't have an immediate effect. However, if a
mutating call is made on a locked binding, the change will be applied once the binding becomes unlocked.
a function for decrementing this binding's lock count.
a function for decrementing this binding's lock count.
Readonly
resetResets the binding back to its initial value and marks the binding as non-modified.
Resets the binding back to its initial value and marks the binding as non-modified.
Readonly
setSets the value, using the result of setValueTransformer
if set, and then marks the binding as modified.
Sets the value, using the result of setValueTransformer
if set, and then marks the binding as modified.
Readonly
setSets the binding as having been modified or not
Sets the binding as having been modified or not
Readonly
setSets the internal value without transforming or marking as changed. Don't normally use this!
Sets the internal value without transforming or marking as changed. Don't normally use this!
Optional
Readonly
setIf set, a function to transform the value before it's stored
Readonly
triggerForcibly triggers the change listeners. Don't normally use this!
Forcibly triggers the change listeners. Don't normally use this!
Readonly
uidAn ID that's unique to this runtime
Generated using TypeDoc
A binding is a stored piece of data that notifies registered listeners when changed.
See
useBinding