genui / a2ui / useDataBinding
function useDataBinding<T>( dynamicValue: unknown, surface: undefined | Surface, dataContextPath?: string, fallbackValue?: T): [T | undefined, (newValue: T) => void, string | undefined]
Subscribe to a data-model binding and return the current value at that path.
T
unknown
dynamicValue
surface
undefined
Surface
dataContextPath
string
fallbackValue
[T | undefined, (newValue: T) => void, string | undefined]
newValue
void
@lynx-js/genui/a2ui/src/react/useDataBinding.ts:49