(current, instance)
| 10462 | |
| 10463 | // Capture errors so they don't interrupt unmounting. |
| 10464 | function safelyCallComponentWillUnmount(current, instance) { |
| 10465 | { |
| 10466 | invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance); |
| 10467 | if (hasCaughtError$1()) { |
| 10468 | var unmountError = clearCaughtError$1(); |
| 10469 | captureError(current, unmountError); |
| 10470 | } |
| 10471 | } |
| 10472 | } |
| 10473 | |
| 10474 | function safelyDetachRef(current) { |
| 10475 | var ref = current.ref; |