MCPcopy
hub / github.com/TanStack/query / usePiPWindow

Function usePiPWindow

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

Source from the content-addressed store, hash-verified

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

Callers 3

DevtoolsFunction · 0.90
PiPPanelFunction · 0.90
ContentViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…