MCPcopy
hub / github.com/tinyplex/tinybase / useValueState

Function useValueState

src/ui-react/hooks.ts:906–912  ·  view source on GitHub ↗
(
  valueId: Id,
  storeOrStoreId?: StoreOrStoreId,
)

Source from the content-addressed store, hash-verified

904 );
905
906export const useValueState: typeof useValueStateDecl = (
907 valueId: Id,
908 storeOrStoreId?: StoreOrStoreId,
909): [ValueOrUndefined, (value: Value) => void] => [
910 useValue(valueId, storeOrStoreId),
911 useSetValueCallback(valueId, getArg, [], storeOrStoreId),
912];
913
914export const useSetTablesCallback: typeof useSetTablesCallbackDecl = <
915 Parameter,

Callers 3

StateFunction · 0.90
TestFunction · 0.90
EditableValueViewFunction · 0.90

Calls 2

useValueFunction · 0.90
useSetValueCallbackFunction · 0.90

Tested by 2

StateFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…