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

Function unsubscribe

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

Source from the content-addressed store, hash-verified

468 }
469
470 const unsubscribe = () => {
471 if (isResizing()) {
472 setIsResizing(false)
473 }
474 document.removeEventListener('mousemove', runDrag, false)
475 document.removeEventListener('mouseup', unsubscribe, false)
476 }
477
478 document.addEventListener('mousemove', runDrag, false)
479 document.addEventListener('mouseup', unsubscribe, false)

Calls

no outgoing calls

Tested by

no test coverage detected