MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / wrappedRender

Function wrappedRender

source code/ink/root.ts:109–123  ·  view source on GitHub ↗
(
  node: ReactNode,
  options?: NodeJS.WriteStream | RenderOptions,
)

Source from the content-addressed store, hash-verified

107}
108
109const 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
125export default wrappedRender
126

Callers

nothing calls this directly

Calls 3

renderSyncFunction · 0.85
logForDebuggingFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected