-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors
Description
p5.js version
No response
What is your operating system?
None
Web browser and version
No response
There's no ErrorBoundary component anywhere in the client. Any unhandled
render error kills the entire app with a white screen. No fallback, no
message, nothing.
Especially bad around the Editor (805-line class component doing CodeMirror
DOM stuff) and IDEView. Users just lose their session with zero feedback.
Steps to reproduce:
- Throw an error inside any component during render
- Entire app dies, white screen
- No way to recover without a full page reload
Expected: Some fallback UI. Even just "Something went wrong, go back home."
Actual: Blank page.
Fix involves:
- Add ErrorBoundary component with componentDidCatch + fallback UI
- Wrap route-level components in routes.jsx (IDE, Dashboard, Preview)
Filed against client/routes.jsx and client/modules/App/App.tsx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors