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

Function commitDetachRef

code/redux/public/app.js:11666–11675  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11664 }
11665
11666 function commitDetachRef(current) {
11667 var currentRef = current.ref;
11668 if (currentRef !== null) {
11669 if (typeof currentRef === 'function') {
11670 currentRef(null);
11671 } else {
11672 currentRef.current = null;
11673 }
11674 }
11675 }
11676
11677 // User-originating errors (lifecycles and refs) should not interrupt
11678 // 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