Skip to main content

Error recovery

Press Disconnect sensor to trigger an effect error. The boundary replaces the failed subtree with the error message, while the rest of the app stays usable. Unmount the sensor, then mount it again to create a fresh component and boundary.

ErrorBoundary catches mount and effect errors in its subtree. Its fallback receives the real Error. It disposes failed child widgets and their effects, so recovery does not leave subscriptions or UI objects behind. Place boundaries around independent parts of your interface and keep the recovery control outside the boundary.