TX005

Render after unmount

Console

Text.js error TX005: Cannot render into an unmounted console root.

Why this happens

root.render() was called on a console root after root.unmount(). An unmounted root has released its renderer and input listeners.

How to fix it

Create a new root, or keep the root mounted and render a different tree:

root.unmount();const next = await createConsoleRoot();next.render(<App />);

In tests, check root.unmounted before rendering from async callbacks.