MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / commitDetachRef

Function commitDetachRef

code/communication/public/app.js:11450–11459  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11448 }
11449
11450 function commitDetachRef(current) {
11451 var currentRef = current.ref;
11452 if (currentRef !== null) {
11453 if (typeof currentRef === 'function') {
11454 currentRef(null);
11455 } else {
11456 currentRef.current = null;
11457 }
11458 }
11459 }
11460
11461 // User-originating errors (lifecycles and refs) should not interrupt
11462 // deletion, so don't let them throw. Host-originating errors should

Callers 1

commitAllHostEffectsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected