MDK Logo
UI Kitreact-adapterHooks

useDashboardDateRange

Owns the single source of truth for the dashboard's date-range picker. Pass `start` / `end` from the return value into every data hook on the page (`useHashr…

Owns the single source of truth for the dashboard's date-range picker. Pass `start` / `end` from the return value into every data hook on the page (`useHashrateChartData`, `useConsumptionChartData`, the export, etc.) so they refetch in loc…

import { useDashboardDateRange } from "@tetherto/mdk-react-adapter";

Signature

(options: UseDashboardDateRangeOptions = {}) => UseDashboardDateRangeReturn
Package@tetherto/mdk-react-adapter
Requires providerNo