MDK Logo
ReferenceUI KitReactHooks

useExplorerData

Explorer list data hook: fetches the things behind one tab (@link useExplorerList) and shapes them for `DeviceExplorer` — applying the toolbar's search + fil…

Explorer list data hook: fetches the things behind one tab ({@link useExplorerList}) and shapes them for `<DeviceExplorer>` — applying the toolbar's search + filter selections client-side and deriving the search-autocomplete and filter-cascader options from the fetched rows. The tag-based backend query lives in `@tetherto/mdk-ui-foundation`; this hook only reads snapshot fields for display filtering. Search, status-filter and (in `DeviceExplorer`) column sort are all **client-side**, over a tag-filtered, capped fetch — this mirrors MOS/the reference app. Fine for containers/cabinets; for very large miner fleets this fetches the cap and filters in the browser (no server paging). Push status into the foundation query + wire `limit`/`offset` if that ceiling is ever hit.

import { useExplorerData } from "@tetherto/mdk-react-devkit";

Signature

(options: UseExplorerDataOptions) => UseExplorerDataResult
Package@tetherto/mdk-react-devkit