MCPcopy Create free account
hub / github.com/TanStack/hotkeys / resolvePluginHost

Function resolvePluginHost

packages/hotkeys-devtools/src/components/Shell.tsx:22–30  ·  view source on GitHub ↗

TanStack devtools plugin pane; percentage heights break without this.

(el: HTMLElement)

Source from the content-addressed store, hash-verified

20
21/** TanStack devtools plugin pane; percentage heights break without this. */
22function resolvePluginHost(el: HTMLElement): HTMLElement | null {
23 const found = el.closest('[id^="plugin-container-"]')
24 if (found instanceof HTMLElement) return found
25 let n: HTMLElement | null = el
26 for (let i = 0; i < 3 && n; i++) {
27 n = n.parentElement
28 }
29 return n
30}
31
32export function Shell() {
33 const styles = useStyles()

Callers 1

ShellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…