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