MDK Logo

Table Hooks

Table state and interaction hooks

Hooks for table components and data management.

Package

@tetherto/mdk-react-devkit

Hooks

@tetherto/mdk-react-devkit

Explorer data

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

Import the public APIs on this page from @tetherto/mdk-react-devkit.

useExplorerData

Explorer list data hook: fetches the things behind one tab (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.

(options: UseExplorerDataOptions) => UseExplorerDataResult

On this page