( current, nearestMountedAncestor, instance )
| 11051 | } |
| 11052 | } |
| 11053 | function safelyCallComponentWillUnmount( |
| 11054 | current, |
| 11055 | nearestMountedAncestor, |
| 11056 | instance |
| 11057 | ) { |
| 11058 | instance.props = resolveClassComponentProps( |
| 11059 | current.type, |
| 11060 | current.memoizedProps |
| 11061 | ); |
| 11062 | instance.state = current.memoizedState; |
| 11063 | try { |
| 11064 | instance.componentWillUnmount(); |
| 11065 | } catch (error) { |
| 11066 | captureCommitPhaseError(current, nearestMountedAncestor, error); |
| 11067 | } |
| 11068 | } |
| 11069 | function safelyAttachRef(current, nearestMountedAncestor) { |
| 11070 | try { |
| 11071 | var ref = current.ref; |
no test coverage detected
searching dependent graphs…