p5.js-web-editor
p5.js-web-editor copied to clipboard
(Mobile) Catch sketch errors and prevent navigation to sketch view
Nature of issue?
- Existing feature enhancement
Feature enhancement details:
Right now, when the user presses the Play icon, to the right of the header on the <MobileIDEView />
, the app navigates to MobileSketchView
, where the user is finally notified of the error.
This is bad UX - what we want to do is prevent this navigation if there are errors.
Relevant files:
/client/modules/IDE/reducers/console.js
/client/modules/IDE/components/Console.jsx
, the .map((consoleEvent) => { ... }
loop has a method
value, which notifies errors.