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

Function TablesView

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid/index.js:1613–1637  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

1611 )
1612);
1613var TablesView = (props) => {
1614 const tableIds = useTableIds(() => props.store);
1615 const content = () => {
1616 const Table = props.tableComponent ?? TableView;
1617 return wrap(
1618 arrayMap(
1619 getValue(tableIds),
1620 (tableId) => createComponent(
1621 Table,
1622 mergeProps(() => getProps(props.getTableComponentProps, tableId), {
1623 tableId,
1624 get store() {
1625 return props.store;
1626 },
1627 get debugIds() {
1628 return props.debugIds;
1629 }
1630 })
1631 )
1632 ),
1633 props.separator
1634 );
1635 };
1636 return memo(content);
1637};
1638var ValueView = (props) => {
1639 const value = useValue(
1640 () => props.valueId,

Callers

nothing calls this directly

Calls 1

useTableIdsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…