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 provider | No |
useCurrentUserEmail
Fetches `/auth/userinfo` and returns the current user's email. Used by `useLiveActions` to partition actions into "mine vs others".
useDashboardExport
Builds CSV / JSON downloads from the dashboard's already-cached TanStack Query data. Does NOT trigger refetches — the export is exactly what the user is look…