MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / renderAndRun

Function renderAndRun

src/interactiveHelpers.tsx:124–129  ·  view source on GitHub ↗
(root: Root, element: React.ReactNode)

Source from the content-addressed store, hash-verified

122 * Handles the common epilogue: start deferred prefetches, wait for exit, graceful shutdown.
123 */
124export async function renderAndRun(root: Root, element: React.ReactNode): Promise<void> {
125 root.render(element);
126 startDeferredPrefetches();
127 await root.waitUntilExit();
128 await gracefulShutdown(0);
129}
130
131export async function showSetupScreens(
132 root: Root,

Callers 2

launchReplFunction · 0.85
launchResumeChooserFunction · 0.85

Calls 4

startDeferredPrefetchesFunction · 0.85
waitUntilExitMethod · 0.80
gracefulShutdownFunction · 0.50
renderMethod · 0.45

Tested by

no test coverage detected