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

Function commitDetachRef

code/styling/public/app.js:11415–11424  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11413 }
11414
11415 function commitDetachRef(current) {
11416 var currentRef = current.ref;
11417 if (currentRef !== null) {
11418 if (typeof currentRef === 'function') {
11419 currentRef(null);
11420 } else {
11421 currentRef.current = null;
11422 }
11423 }
11424 }
11425
11426 // User-originating errors (lifecycles and refs) should not interrupt
11427 // 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