MCPcopy
hub / github.com/testing-library/react-hooks-testing-library / removeCleanup

Function removeCleanup

src/core/cleanup.ts:17–19  ·  view source on GitHub ↗
(callback: CleanupCallback)

Source from the content-addressed store, hash-verified

15}
16
17function removeCleanup(callback: CleanupCallback) {
18 cleanupCallbacks = cleanupCallbacks.filter((cb) => cb !== callback)
19}
20
21function skipAutoCleanup() {
22 try {

Callers 3

unmountHookFunction · 0.90
addCleanupFunction · 0.85
cleanup.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…