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