Function
launchRepl
(
root: Root,
appProps: AppWrapperProps,
replProps: REPLProps,
renderAndRun: (root: Root, element: React.ReactNode) => Promise<void>,
)
Source from the content-addressed store, hash-verified
| 12 | }; |
| 13 | |
| 14 | export async function launchRepl( |
| 15 | root: Root, |
| 16 | appProps: AppWrapperProps, |
| 17 | replProps: REPLProps, |
| 18 | renderAndRun: (root: Root, element: React.ReactNode) => Promise<void>, |
| 19 | ): Promise<void> { |
| 20 | const { App } = await import('./components/App.js'); |
| 21 | const { SentryErrorBoundary } = await import('./components/SentryErrorBoundary.js'); |
| 22 | const { REPL } = await import('./screens/REPL.js'); |
| 23 | await renderAndRun( |
| 24 | root, |
| 25 | <SentryErrorBoundary name="RootREPLBoundary"> |
| 26 | <App {...appProps}> |
| 27 | <REPL {...replProps} /> |
| 28 | </App> |
| 29 | </SentryErrorBoundary>, |
| 30 | ); |
| 31 | } |
Tested by
no test coverage detected