useTreeMap()function
useTreeMap(): ReadonlyMap<string, TreeElement>
| Return | |
|---|---|
ReadonlyMap<string, TreeElement> |
Use the flattened tree lookup map from context.
- Returns an empty map when there's no
<TreeProvider>above (e.g. an isolated card rendered outside the tree shell), so callers can look up freely and fall back to plain text on a miss.
Examples
const element = useTreeMap().get("Store.get");