useBindableValue
The useBindableValue hook returns a reactive object reflecting the value of a Value, with a settable current property that writes back to the Store.
useBindableValue(
valueId: MaybeGetter<string>,
storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>,
): {current: ValueOrUndefined}| Type | Description | |
|---|---|---|
valueId | MaybeGetter<string> | |
storeOrStoreId? | MaybeGetter<undefined | StoreOrStoreId> | |
| returns | {current: ValueOrUndefined} | A reactive object with gettable and settable |
Since
v8.1.0