(current)
| 10646 | } |
| 10647 | |
| 10648 | function commitDetachRef(current) { |
| 10649 | var currentRef = current.ref; |
| 10650 | if (currentRef !== null) { |
| 10651 | if (typeof currentRef === 'function') { |
| 10652 | currentRef(null); |
| 10653 | } else { |
| 10654 | currentRef.current = null; |
| 10655 | } |
| 10656 | } |
| 10657 | } |
| 10658 | |
| 10659 | // User-originating errors (lifecycles and refs) should not interrupt |
| 10660 | // deletion, so don't let them throw. Host-originating errors should |
no outgoing calls
no test coverage detected