(finishedWork: Fiber)
| 67 | import {enableFragmentRefs} from 'shared/ReactFeatureFlags'; |
| 68 | |
| 69 | export function commitHostMount(finishedWork: Fiber) { |
| 70 | const type = finishedWork.type; |
| 71 | const props = finishedWork.memoizedProps; |
| 72 | const instance: Instance = finishedWork.stateNode; |
| 73 | try { |
| 74 | if (__DEV__) { |
| 75 | runWithFiberInDEV( |
| 76 | finishedWork, |
| 77 | commitMount, |
| 78 | instance, |
| 79 | type, |
| 80 | props, |
| 81 | finishedWork, |
| 82 | ); |
| 83 | } else { |
| 84 | commitMount(instance, type, props, finishedWork); |
| 85 | } |
| 86 | } catch (error) { |
| 87 | captureCommitPhaseError(finishedWork, finishedWork.return, error); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | export function commitHostHydratedInstance(finishedWork: Fiber) { |
| 92 | const type = finishedWork.type; |
no test coverage detected