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

Fix the error boundary #3637

Merged
merged 17 commits into from
Jul 9, 2024
Merged

Fix the error boundary #3637

merged 17 commits into from
Jul 9, 2024

Conversation

maximvlah
Copy link
Contributor

@maximvlah maximvlah commented Jul 9, 2024

@maximvlah maximvlah marked this pull request as ready for review July 9, 2024 16:24
@maximvlah
Copy link
Contributor Author

@masenf @Lendemor I have found few minor bugs in #3572 and fixed them here, please have a look

@masenf masenf merged commit fa71edd into reflex-dev:main Jul 9, 2024
47 checks passed
@maximvlah maximvlah deleted the fix-error-boundary branch July 9, 2024 18:29
Alek99 pushed a commit that referenced this pull request Jul 15, 2024
* - added possibility to pass front- and backend exception handlers to rx.App
- wrapped the app with ErrorBoundary component to catch rendering errors

* added missing exception handler to reflex.app._process

* regenerated pyi

* fix unit tests for exception handler validation

* fix typing error in ErrorBoudary

* - fix error_bounday pyi
- minor refactoring of error boundary
- removed error boundary from 404 page

* added missing inspect module import after merging main

* fix typing error

* Clean up ErrorBoundary component

* Remove custom _render function
* Remove special imports in Component base class
* Simplify hooks for better composability

* test_exception_handlers: also test in prod mode

* fixed color prop

* fixed error boundary bug and removed hardcoding of the frontend event exception state

* formatted the code after conflict resolution

* fixed type of the error_boundary

* ruff format

---------

Co-authored-by: Maxim Vlah <m.vlah@senbax.de>
Co-authored-by: Masen Furer <m_github@0x26.net>
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.

2 participants