UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

9 lines (8 loc) 263 B
import { useEvent } from "@1771technologies/lytenyte-core/internal"; export function useRowById(source) { const rowById = useEvent((id) => { const node = source.tree.rowIdToNode.get(id)?.row; return node ?? null; }); return rowById; }