(thenable: Thenable<T>)
| 276 | } |
| 277 | |
| 278 | function unwrapThenable<T>(thenable: Thenable<T>): T { |
| 279 | const index = thenableIndexCounter; |
| 280 | thenableIndexCounter += 1; |
| 281 | if (thenableState === null) { |
| 282 | thenableState = createThenableState(); |
| 283 | } |
| 284 | return trackUsedThenable(thenableState, thenable, index); |
| 285 | } |
| 286 | |
| 287 | function coerceRef(workInProgress: Fiber, element: ReactElement): void { |
| 288 | // TODO: This is a temporary, intermediate step. Now that enableRefAsProp is on, |
no test coverage detected