(current)
| 20169 | } |
| 20170 | |
| 20171 | function commitDetachRef(current) { |
| 20172 | var currentRef = current.ref; |
| 20173 | |
| 20174 | if (currentRef !== null) { |
| 20175 | if (typeof currentRef === 'function') { |
| 20176 | currentRef(null); |
| 20177 | } else { |
| 20178 | currentRef.current = null; |
| 20179 | } |
| 20180 | } |
| 20181 | } // User-originating errors (lifecycles and refs) should not interrupt |
| 20182 | // deletion, so don't let them throw. Host-originating errors should |
| 20183 | // interrupt deletion, so it's okay |
| 20184 |
no outgoing calls
no test coverage detected