| 11239 | } |
| 11240 | |
| 11241 | function safelyDetachRef(current) { |
| 11242 | var ref = current.ref; |
| 11243 | if (ref !== null) { |
| 11244 | if (typeof ref === 'function') { |
| 11245 | { |
| 11246 | invokeGuardedCallback$3(null, ref, null, null); |
| 11247 | if (hasCaughtError$1()) { |
| 11248 | var refError = clearCaughtError$1(); |
| 11249 | captureError(current, refError); |
| 11250 | } |
| 11251 | } |
| 11252 | } else { |
| 11253 | ref.current = null; |
| 11254 | } |
| 11255 | } |
| 11256 | } |
| 11257 | |
| 11258 | function commitLifeCycles(finishedRoot, current, finishedWork, currentTime, committedExpirationTime) { |
| 11259 | switch (finishedWork.tag) { |