TinyBase logoTinyBase β

getMetricIds

The getMetricIds function returns a reactive object reflecting the Ids of the Metrics in a Metrics object, and registers a listener so that any changes will update current.

getMetricIds(metricsOrMetricsId?: MaybeGetter<undefined | MetricsOrMetricsId>): {current: Ids}
TypeDescription
metricsOrMetricsId?MaybeGetter<undefined | MetricsOrMetricsId>

The Metrics object to use, or its Id.

returns{current: Ids}

A reactive object with a current Ids property.

Since

v8.1.0