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

Function commitDetachRef

code/dependency-injection/public/app.js:11508–11517  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11506 }
11507
11508 function commitDetachRef(current) {
11509 var currentRef = current.ref;
11510 if (currentRef !== null) {
11511 if (typeof currentRef === 'function') {
11512 currentRef(null);
11513 } else {
11514 currentRef.current = null;
11515 }
11516 }
11517 }
11518
11519 // User-originating errors (lifecycles and refs) should not interrupt
11520 // 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