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

Function commitDetachRef

code/composition/public/app.js:11553–11562  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11551 }
11552
11553 function commitDetachRef(current) {
11554 var currentRef = current.ref;
11555 if (currentRef !== null) {
11556 if (typeof currentRef === 'function') {
11557 currentRef(null);
11558 } else {
11559 currentRef.current = null;
11560 }
11561 }
11562 }
11563
11564 // User-originating errors (lifecycles and refs) should not interrupt
11565 // 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