(current)
| 11506 | } |
| 11507 | |
| 11508 | function commitDetachRef(current) { |
| 11509 | var currentRef = current.ref; |
| 11510 | if (currentRef !== null) { |
| 11511 | if (typeof currentRef === 'function') { |
| 11512 | currentRef(null); |
| 11513 | } else { |
| 11514 | currentRef.current = null; |
| 11515 | } |
| 11516 | } |
| 11517 | } |
| 11518 | |
| 11519 | // User-originating errors (lifecycles and refs) should not interrupt |
| 11520 | // deletion, so don't let them throw. Host-originating errors should |
no outgoing calls
no test coverage detected