(current)
| 11413 | } |
| 11414 | |
| 11415 | function commitDetachRef(current) { |
| 11416 | var currentRef = current.ref; |
| 11417 | if (currentRef !== null) { |
| 11418 | if (typeof currentRef === 'function') { |
| 11419 | currentRef(null); |
| 11420 | } else { |
| 11421 | currentRef.current = null; |
| 11422 | } |
| 11423 | } |
| 11424 | } |
| 11425 | |
| 11426 | // User-originating errors (lifecycles and refs) should not interrupt |
| 11427 | // deletion, so don't let them throw. Host-originating errors should |
no outgoing calls
no test coverage detected