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

ErrorBoundary #5913

Open
Tracked by #6147
sonatard opened this issue May 23, 2024 · 1 comment
Open
Tracked by #6147

ErrorBoundary #5913

sonatard opened this issue May 23, 2024 · 1 comment

Comments

@sonatard
Copy link
Contributor

sonatard commented May 23, 2024

Use case

Place an ErrorBoundary at the top level of your component hierarchy. This allows it to catch errors thrown by lower-level components and handle these errors with a fallback mechanism.

React docs
https://ja.react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary

Jetpack Compose implementation
https://docs.soil-kt.com/guide/query/hello-query#step-4-compose-runtime

Describe the solution you'd like

This eliminates the need for implementing error handling in individual components.

Reference

I created this issue to Jetpack Compose.
https://issuetracker.google.com/issues/342247580

@bignimbus
Copy link
Contributor

Related to #5914 and could also be complementary to the new nullability directives 🙏🏻

@BoD BoD changed the title ErrorBoundary ErrorBoundary Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants