()
| 87 | }; |
| 88 | |
| 89 | export function createThenableState(): ThenableState { |
| 90 | // The ThenableState is created the first time a component suspends. If it |
| 91 | // suspends again, we'll reuse the same state. |
| 92 | if (__DEV__) { |
| 93 | return { |
| 94 | didWarnAboutUncachedPromise: false, |
| 95 | thenables: [], |
| 96 | }; |
| 97 | } else { |
| 98 | return []; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | export function isThenableResolved(thenable: Thenable<mixed>): boolean { |
| 103 | const status = thenable.status; |
no outgoing calls
no test coverage detected