useHashrate
Base hook for a single Hashrate tab (single-site mode). Normalizes a grouped-hashrate query result to the ` log, isLoading, error ` shape consumed by `Hashra…
Base hook for a single Hashrate tab (single-site mode). Normalizes a grouped-hashrate query result to the `{ log, isLoading, error }` shape consumed by `<HashrateSiteView>`, `<HashrateMinerTypeView>`, and `<HashrateMiningUnitView>`. Call once per tab the consumer needs to render - each tab fetches independently because they use different `groupBy` axes and (typically) different date ranges.
import { useHashrate } from "@tetherto/mdk-react-devkit";Signature
({ query }?: UseHashrateOptions) => UseHashrateResult| Package | @tetherto/mdk-react-devkit |