MCPcopy Create free account
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 const { isCollapsed } = createCollapsed()
78 const [showMarketplace, setShowMarketplace] = createSignal(false)
79 const themeOwner = Symbol('tanstack-devtools-theme')
80
81 const updateHeight = (nextHeight: number) => {
82 setHeight(nextHeight)
83 setIsOpen(nextHeight >= PANEL_CLOSE_THRESHOLD)
84 }
85
86 const toggleOpen = () => {
87 if (pip().pipWindow) return
88 const newState = !isOpen()
89 setIsOpen(newState)
90 setPersistOpen(newState)
91 devtoolsEventClient.emit('trigger-toggled', { isOpen: newState })
92 }
93
94 createEffect(() => {
95 const unsubscribe = devtoolsEventClient.on('trigger-toggled', (event) => {
96 if (pip().pipWindow) return

Callers 1

DevToolsFunction · 0.85

Calls 1

setHeightFunction · 0.85

Tested by

no test coverage detected