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

Function createHeight

packages/devtools/src/context/use-devtools-context.ts:121–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121export const createHeight = () => {
122 const { state, setState } = createDevtoolsState()
123
124 const height = createMemo(() => state().height)
125
126 const setHeight = (newHeight: number) => {
127 setState({ height: newHeight })
128 }
129
130 return { height, setHeight }
131}

Callers 2

DevToolsFunction · 0.90
MainPanelFunction · 0.90

Calls 1

createDevtoolsStateFunction · 0.85

Tested by

no test coverage detected