MCPcopy Index your code
hub / github.com/codeaashu/claude-code / wrappedRender

Function wrappedRender

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

Source from the content-addressed store, hash-verified

105}
106
107const 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
123export default wrappedRender
124

Callers

nothing calls this directly

Calls 3

renderSyncFunction · 0.85
logForDebuggingFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected