( node: ReactNode, options?: NodeJS.WriteStream | RenderOptions, )
| 105 | } |
| 106 | |
| 107 | const wrappedRender = async ( |
| 108 | node: ReactNode, |
| 109 | options?: NodeJS.WriteStream | RenderOptions, |
| 110 | ): Promise<Instance> => { |
| 111 | // Preserve the microtask boundary that `await loadYoga()` used to provide. |
| 112 | // Without it, the first render fires synchronously before async startup work |
| 113 | // (e.g. useReplBridge notification state) settles, and the subsequent Static |
| 114 | // write overwrites scrollback instead of appending below the logo. |
| 115 | await Promise.resolve() |
| 116 | const instance = renderSync(node, options) |
| 117 | logForDebugging( |
| 118 | `[render] first ink render: ${Math.round(process.uptime() * 1000)}ms since process start`, |
| 119 | ) |
| 120 | return instance |
| 121 | } |
| 122 | |
| 123 | export default wrappedRender |
| 124 |
nothing calls this directly
no test coverage detected