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

Function useMetricsOrMetricsById

src/ui-solid/primitives.ts:1238–1241  ·  view source on GitHub ↗
(
  metricsOrMetricsId?: MaybeAccessor<MetricsOrMetricsId | undefined>,
)

Source from the content-addressed store, hash-verified

1236): Accessor<Metrics | undefined> => useThing(id, OFFSET_METRICS);
1237
1238export const useMetricsOrMetricsById = (
1239 metricsOrMetricsId?: MaybeAccessor<MetricsOrMetricsId | undefined>,
1240): Accessor<Metrics | undefined> =>
1241 useThingOrThingById(metricsOrMetricsId, OFFSET_METRICS);
1242
1243export const useProvideMetrics = (metricsId: Id, metrics: Metrics): void =>
1244 useProvideThing(metricsId, metrics, OFFSET_METRICS);

Callers 3

useMetricIdsFunction · 0.70
useMetricFunction · 0.70
useMetricListenerFunction · 0.70

Calls 1

useThingOrThingByIdFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…