MCPcopy Create free account
hub / github.com/tinyplex/tinybase / useValueState

Function useValueState

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid/index.js:536–539  ·  view source on GitHub ↗
(valueId, storeOrStoreId)

Source from the content-addressed store, hash-verified

534 [valueId]
535);
536var useValueState = (valueId, storeOrStoreId) => [
537 useValue(valueId, storeOrStoreId),
538 useSetValueCallback(valueId, getArg, storeOrStoreId)
539];
540var useSetTablesCallback = (getTables, storeOrStoreId, then) => useStoreSetCallback(storeOrStoreId, TABLES, getTables, then);
541var useSetTableCallback = (tableId, getTable, storeOrStoreId, then) => useStoreSetCallback(storeOrStoreId, TABLE, getTable, then, tableId);
542var useSetRowCallback = (tableId, rowId, getRow, storeOrStoreId, then) => useStoreSetCallback(storeOrStoreId, ROW, getRow, then, tableId, rowId);

Callers

nothing calls this directly

Calls 2

useValueFunction · 0.70
useSetValueCallbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…