MDK Logo
UI Kitreact-adapterHooks

useCurrentAlertDevices

TanStack Query hook returning the **raw** devices that currently carry one or more alerts, as the nested `ListThingsDevice[][]` the devkit `Alerts` / `Curren…

TanStack Query hook returning the **raw** devices that currently carry one or more alerts, as the nested `ListThingsDevice[][]` the devkit `<Alerts>` / `<CurrentAlerts>` table expects (the table heads the outer array itself).

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

Signature

(options: UseCurrentAlertDevicesOptions = {}) => UseQueryResult<ListThingsDevice[][], Error>
Package@tetherto/mdk-react-adapter
Requires providerNo