fix: add an ErrorBoundary so a render throw does not blank the page #35

Open
opened 2026-10-28 21:52:11 +00:00 by flopana · 0 comments
Owner

Part of #30

Branch: bugfix/error-boundary

Bug

src/ has no ErrorBoundary. A throw during render in any tool makes the whole page blank. The Hashing SHAKE crash is one example.

Red test

A child component that throws during render shows a fallback message, not a blank page.

Fix

  • A small class component ErrorBoundary, around the routes in src/main.tsx or the layout.
  • The fallback tells the user that the tool failed and gives a way to reload it.
  • Do not add a dependency.
Part of #30 Branch: `bugfix/error-boundary` ## Bug `src/` has no ErrorBoundary. A throw during render in any tool makes the whole page blank. The Hashing SHAKE crash is one example. ## Red test A child component that throws during render shows a fallback message, not a blank page. ## Fix - A small class component `ErrorBoundary`, around the routes in `src/main.tsx` or the layout. - The fallback tells the user that the tool failed and gives a way to reload it. - Do not add a dependency.
Sign in to join this conversation.
No description provided.