(rscPath: string)
| 42 | } |
| 43 | |
| 44 | export function getPrefetchedPromise(rscPath: string): Promise<ReactElement> | undefined { |
| 45 | return prefetchPromises.get(rscPath); |
| 46 | } |
| 47 | |
| 48 | function waitForIdle(fn) { |
| 49 | // Wait for view transition to finish before pre-fetching. |