MCPcopy Index your code
hub / github.com/tinyplex/tinybase / useMetricIds

Function useMetricIds

src/ui-react/hooks.ts:1559–1566  ·  view source on GitHub ↗
(
  metricsOrMetricsId?: MetricsOrMetricsId,
)

Source from the content-addressed store, hash-verified

1557): void => useProvideThing(metricsId, metrics, OFFSET_METRICS);
1558
1559export const useMetricIds: typeof useMetricIdsDecl = (
1560 metricsOrMetricsId?: MetricsOrMetricsId,
1561): Ids =>
1562 useListenable(
1563 METRIC + IDS,
1564 useMetricsOrMetricsById(metricsOrMetricsId),
1565 ReturnType.Array,
1566 );
1567
1568export const useMetric: typeof useMetricDecl = (
1569 metricId: Id,

Callers 2

ReaderFunction · 0.90
MetricsViewFunction · 0.90

Calls 2

useMetricsOrMetricsByIdFunction · 0.90
useListenableFunction · 0.70

Tested by 1

ReaderFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…