( prevThenableState: ThenableState | null, componentDebugInfo: null | ReactComponentInfo, )
| 33 | } |
| 34 | |
| 35 | export function prepareToUseHooksForComponent( |
| 36 | prevThenableState: ThenableState | null, |
| 37 | componentDebugInfo: null | ReactComponentInfo, |
| 38 | ) { |
| 39 | thenableIndexCounter = 0; |
| 40 | thenableState = prevThenableState; |
| 41 | if (__DEV__) { |
| 42 | currentComponentDebugInfo = componentDebugInfo; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | export function getThenableStateAfterSuspending(): ThenableState { |
| 47 | // If you use() to Suspend this should always exist but if you throw a Promise instead, |
no outgoing calls
no test coverage detected