MCPcopy Index your code
hub / github.com/TanStack/devtools / run

Function run

packages/devtools/src/devtools.tsx:79–93  ·  view source on GitHub ↗
(moveEvent: MouseEvent)

Source from the content-addressed store, hash-verified

77 }
78
79 const run = (moveEvent: MouseEvent) => {
80 const delta = dragInfo.pageY - moveEvent.pageY
81 const newHeight =
82 settings().panelLocation === 'bottom'
83 ? dragInfo.originalHeight + delta
84 : dragInfo.originalHeight - delta
85
86 setHeight(newHeight)
87
88 if (newHeight < 70) {
89 setIsOpen(false)
90 } else {
91 setIsOpen(true)
92 }
93 }
94
95 const unsub = () => {
96 setIsResizing(false)

Callers 1

DevToolsFunction · 0.85

Calls 1

setHeightFunction · 0.85

Tested by

no test coverage detected