MCPcopy Create free account
hub / github.com/TanStack/query / usePiPWindow

Function usePiPWindow

packages/query-devtools/src/contexts/PiPContext.tsx:181–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 * open and close it.
180 */
181export const usePiPWindow = () => {
182 const context = createMemo(() => {
183 const ctx = useContext(PiPContext)
184 if (!ctx) {
185 throw new Error('usePiPWindow must be used within a PiPProvider')
186 }
187 return ctx()
188 })
189 return context
190}

Callers 5

DevtoolsFunction · 0.90
PiPPanelFunction · 0.90
ContentViewFunction · 0.90
PiPActorFunction · 0.90
PiPProbeFunction · 0.90

Calls

no outgoing calls

Tested by 2

PiPActorFunction · 0.72
PiPProbeFunction · 0.72