ErrorBoundary top-level property
- @Deprecated('Use the `ErrorBoundary` component exported from `package:over_react/components.dart` instead. Will be removed in the 4.0.0 release of over_react.')
- @Factory()
getter/setter pair
A higher-order component that will catch ReactJS errors anywhere within the child component tree and display a fallback UI instead of the component tree that crashed.
Deprecated. Use the ErrorBoundary
component exported from package:over_react/components.dart
instead:
import 'package:over_react/over_react.dart';
import 'package:over_react/components.dart' as c;
// Then use `c.ErrorBoundary` instead of `ErrorBoundary`:
main() {
final errorBoundary = c.ErrorBoundary()(
// The tree you're wrapping around
);
}
Implementation
@Deprecated('Use the `ErrorBoundary` component exported from `package:over_react/components.dart` instead. Will be removed in the 4.0.0 release of over_react.')
@Factory()
UiFactory<ErrorBoundaryProps> ErrorBoundary = _$ErrorBoundary;