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

Function createPiPWindow

packages/devtools/src/context/pip-context.tsx:167–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167export const createPiPWindow = () => {
168 const context = createMemo(() => {
169 const ctx = getContext(PiPContext)
170 if (!ctx) {
171 throw new Error('createPiPWindow must be used within a PiPProvider')
172 }
173 return ctx()
174 })
175 return context
176}

Callers 3

DevToolsFunction · 0.90
TabsFunction · 0.90
MainPanelFunction · 0.90

Calls 1

getContextFunction · 0.85

Tested by

no test coverage detected