reactpy icon indicating copy to clipboard operation
reactpy copied to clipboard

Transmit React `client.js` warnings/errors to Python logger

Open Archmonger opened this issue 3 years ago • 1 comments
trafficstars

Current Situation

Currently, all warnings or exceptions generated within the react client are only displayed on the front-end. There is a reasonable expectation that most users aren't always going to be looking at inspect tools. Thus, when developing problematic IDOM code there is often no visual indication of what issues arise, leading to a confusing developer experience.

For example, warnings like client.js:3636 Warning: Invalid DOM property `class`. Did you mean `className`? should be transmitted to Python.

The fact that these issues aren't displayed in Python feels a bit disjointed for a Python web development framework.

Proposed Actions

Catch all warnings/exceptions from client.js and transmit them to a Python logger via websockets.

Archmonger avatar Oct 05 '22 23:10 Archmonger

Related to #346

rmorshea avatar Oct 06 '22 03:10 rmorshea

Closing in favor of #890

Archmonger avatar Feb 23 '24 09:02 Archmonger