()
| 725 | } |
| 726 | |
| 727 | function useHostTransitionStatus(): TransitionStatus { |
| 728 | const status = readContext<TransitionStatus>( |
| 729 | // $FlowFixMe[prop-missing] `readContext` only needs _currentValue |
| 730 | ({ |
| 731 | // $FlowFixMe[incompatible-cast] TODO: Incorrect bottom value without access to Fiber config. |
| 732 | _currentValue: null, |
| 733 | }: ReactContext<TransitionStatus>), |
| 734 | ); |
| 735 | |
| 736 | hookLog.push({ |
| 737 | displayName: null, |
| 738 | primitive: 'HostTransitionStatus', |
| 739 | stackError: new Error(), |
| 740 | value: status, |
| 741 | debugInfo: null, |
| 742 | dispatcherHookName: 'HostTransitionStatus', |
| 743 | }); |
| 744 | |
| 745 | return status; |
| 746 | } |
| 747 | |
| 748 | function useEffectEvent<Args, F: (...Array<Args>) => mixed>(callback: F): F { |
| 749 | nextHook(); |
nothing calls this directly
no test coverage detected