Function
useValue
(
valueId: Id,
storeOrStoreId?: StoreOrStoreId,
)
Source from the content-addressed store, hash-verified
| 893 | ); |
| 894 | |
| 895 | export const useValue: typeof useValueDecl = ( |
| 896 | valueId: Id, |
| 897 | storeOrStoreId?: StoreOrStoreId, |
| 898 | ): ValueOrUndefined => |
| 899 | useListenable( |
| 900 | VALUE, |
| 901 | useStoreOrStoreById(storeOrStoreId), |
| 902 | ReturnType.CellOrValue, |
| 903 | [valueId], |
| 904 | ); |
| 905 | |
| 906 | export const useValueState: typeof useValueStateDecl = ( |
| 907 | valueId: Id, |
Used in the wild real call sites across dependent graphs
searching dependent graphs…