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

Function unsubscribe

packages/query-devtools/src/Devtools.tsx:574–580  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

572 }
573
574 const unsubscribe = () => {
575 if (isResizing()) {
576 setIsResizing(false)
577 }
578 document.removeEventListener('mousemove', runDrag, false)
579 document.removeEventListener('mouseup', unsubscribe, false)
580 }
581
582 document.addEventListener('mousemove', runDrag, false)
583 document.addEventListener('mouseup', unsubscribe, false)

Calls

no outgoing calls

Tested by

no test coverage detected