MCPcopy Create free account
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 <PiPContext.Provider value={value}>{props.children}</PiPContext.Provider>
166 )
167}
168
169export const createPiPWindow = () => {
170 const context = createMemo(() => {
171 const ctx = getContext(PiPContext)
172 if (!ctx) {
173 throw new Error('createPiPWindow must be used within a PiPProvider')
174 }
175 return ctx()
176 })
177 return context
178}

Callers 3

DevToolsFunction · 0.90
TabsFunction · 0.90
MainPanelFunction · 0.90

Calls 1

getContextFunction · 0.85

Tested by

no test coverage detected