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