(node: ReactNode)
| 1440 | this.cursorDeclaration = decl; |
| 1441 | }; |
| 1442 | render(node: ReactNode): void { |
| 1443 | this.currentNode = node; |
| 1444 | const tree = <App stdin={this.options.stdin} stdout={this.options.stdout} stderr={this.options.stderr} exitOnCtrlC={this.options.exitOnCtrlC} onExit={this.unmount} terminalColumns={this.terminalColumns} terminalRows={this.terminalRows} selection={this.selection} onSelectionChange={this.notifySelectionChange} onClickAt={this.dispatchClick} onHoverAt={this.dispatchHover} getHyperlinkAt={this.getHyperlinkAt} onOpenHyperlink={this.openHyperlink} onMultiClick={this.handleMultiClick} onSelectionDrag={this.handleSelectionDrag} onStdinResume={this.reassertTerminalModes} onCursorDeclaration={this.setCursorDeclaration} dispatchKeyboardEvent={this.dispatchKeyboardEvent}> |
| 1445 | <TerminalWriteProvider value={this.writeRaw}> |
| 1446 | {node} |
| 1447 | </TerminalWriteProvider> |
| 1448 | </App>; |
| 1449 | |
| 1450 | // @ts-expect-error updateContainerSync exists in react-reconciler but not in @types/react-reconciler |
| 1451 | reconciler.updateContainerSync(tree, this.container, null, noop); |
| 1452 | // @ts-expect-error flushSyncWork exists in react-reconciler but not in @types/react-reconciler |
| 1453 | reconciler.flushSyncWork(); |
| 1454 | } |
| 1455 | unmount(error?: Error | number | null): void { |
| 1456 | if (this.isUnmounted) { |
| 1457 | return; |
no outgoing calls
no test coverage detected