(current)
| 11448 | } |
| 11449 | |
| 11450 | function commitDetachRef(current) { |
| 11451 | var currentRef = current.ref; |
| 11452 | if (currentRef !== null) { |
| 11453 | if (typeof currentRef === 'function') { |
| 11454 | currentRef(null); |
| 11455 | } else { |
| 11456 | currentRef.current = null; |
| 11457 | } |
| 11458 | } |
| 11459 | } |
| 11460 | |
| 11461 | // User-originating errors (lifecycles and refs) should not interrupt |
| 11462 | // deletion, so don't let them throw. Host-originating errors should |
no outgoing calls
no test coverage detected