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

Function useMetricsOrMetricsById

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

Source from the content-addressed store, hash-verified

1547): Metrics | undefined => useThing(id, OFFSET_METRICS);
1548
1549export const useMetricsOrMetricsById: typeof useMetricsOrMetricsByIdDecl = (
1550 metricsOrMetricsId?: MetricsOrMetricsId,
1551): Metrics | undefined =>
1552 useThingOrThingById(metricsOrMetricsId, OFFSET_METRICS);
1553
1554export const useProvideMetrics: typeof useProvideMetricsDecl = (
1555 metricsId: Id,

Callers 3

useMetricIdsFunction · 0.90
useMetricFunction · 0.90
useMetricListenerFunction · 0.90

Calls 1

useThingOrThingByIdFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…