(context: SSRContext)
| 97 | } |
| 98 | |
| 99 | export async function resolveTeleports(context: SSRContext): Promise<void> { |
| 100 | if (context.__teleportBuffers) { |
| 101 | context.teleports = context.teleports || {} |
| 102 | for (const key in context.__teleportBuffers) { |
| 103 | // note: it's OK to await sequentially here because the Promises were |
| 104 | // created eagerly in parallel. |
| 105 | context.teleports[key] = await unrollBuffer( |
| 106 | context.__teleportBuffers[key], |
| 107 | ) |
| 108 | } |
| 109 | } |
| 110 | } |
no test coverage detected