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

Function commitDetachRef

code/third-party/public/app.js:10648–10657  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

10646 }
10647
10648 function commitDetachRef(current) {
10649 var currentRef = current.ref;
10650 if (currentRef !== null) {
10651 if (typeof currentRef === 'function') {
10652 currentRef(null);
10653 } else {
10654 currentRef.current = null;
10655 }
10656 }
10657 }
10658
10659 // User-originating errors (lifecycles and refs) should not interrupt
10660 // 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