(current)
| 10774 | } |
| 10775 | |
| 10776 | function commitDetachRef(current) { |
| 10777 | var currentRef = current.ref; |
| 10778 | if (currentRef !== null) { |
| 10779 | if (typeof currentRef === 'function') { |
| 10780 | currentRef(null); |
| 10781 | } else { |
| 10782 | currentRef.current = null; |
| 10783 | } |
| 10784 | } |
| 10785 | } |
| 10786 | |
| 10787 | // User-originating errors (lifecycles and refs) should not interrupt |
| 10788 | // deletion, so don't let them throw. Host-originating errors should |
no outgoing calls
no test coverage detected