Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch unhandled errors on both frontend and backend #3572

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

maximvlah
Copy link

@maximvlah maximvlah commented Jun 26, 2024

continuation of #3476

closes #3284

…rx.App

- wrapped the app with ErrorBoundary component to catch rendering errors
@maximvlah
Copy link
Author

@masenf here it is, please test it out and let me know, looking forward to hearing your thoughts on this

@maximvlah maximvlah changed the title Catch all unhanled errors on both frontend and backend Catch unhandled errors on both frontend and backend Jun 26, 2024
@benedikt-bartscher
Copy link
Contributor

@maximvlah reflex-web ci is failing

@benedikt-bartscher
Copy link
Contributor

@Lendemor @masenf @picklelo @ElijahAhianyo could someone be so kind and review this one? It would be awesome to also get some thoughts on @maximvlah's comment here: #3476 (comment)

@Lendemor
Copy link
Collaborator

Lendemor commented Jul 2, 2024

Will review/test it this week.

maximvlah and others added 3 commits July 2, 2024 20:00
* Remove custom _render function
* Remove special imports in Component base class
* Simplify hooks for better composability
Copy link
Collaborator

@masenf masenf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed some updates

reflex/components/base/error_boundary.py Outdated Show resolved Hide resolved
reflex/components/base/error_boundary.py Outdated Show resolved Hide resolved
reflex/components/component.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REF-2825] Need a mechanism to catch unhandled errors from event handlers
4 participants