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

Function usePiPWindow

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

Source from the content-addressed store, hash-verified

193}
194
195export const usePiPWindow = () => {
196 const context = createMemo(() => {
197 const ctx = useContext(PiPContext)
198 if (!ctx) {
199 throw new Error('usePiPWindow must be used within a PiPProvider')
200 }
201 return ctx()
202 })
203 return context
204}

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