ReadonlyaddAdds a listener that will be called when this binding changes.
a function that may be used to remove the added listener.
ReadonlygetReadonlygetEvery time the value is changed, the change uid is updated
ReadonlyidA technical, but human-readable ID, which isn't guaranteed to be unique
ReadonlyisA marker indicating that this is a binding type
Readonlyistrue if the binding is locked
Readonlyistrue if this binding has been marked as being modified
ReadonlylockIncrements 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.
ReadonlyresetResets the binding back to its initial value and marks the binding as non-modified.
ReadonlysetSets the value, using the result of setValueTransformer if set, and then marks the binding as modified.
ReadonlysetSets the binding as having been modified or not
ReadonlysetSets the internal value without transforming or marking as changed. Don't normally use this!
Optional ReadonlysetIf set, a function to transform the value before it's stored
ReadonlytriggerForcibly triggers the change listeners. Don't normally use this!
ReadonlyuidAn ID that's unique to this runtime
A binding is a stored piece of data that notifies registered listeners when changed.
See
useBinding