(current)
| 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 |
no outgoing calls
no test coverage detected