Skip to content

Commit

Permalink
Merge pull request #380 from Workiva/release-over_react-2.6.0+dart1
Browse files Browse the repository at this point in the history
RM-59372 Release over_react 2.6.0+dart1
  • Loading branch information
rmconsole4-wk authored Oct 16, 2019
2 parents 20bc383 + 9f8b63c commit 83d2303
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions lib/src/component/error_boundary.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:logging/logging.dart';
import 'package:meta/meta.dart';
import 'package:over_react/over_react.dart';

Expand Down Expand Up @@ -49,6 +50,22 @@ class _$ErrorBoundaryProps extends UiProps {
///
/// > Default: [ErrorBoundaryComponent._renderDefaultFallbackUI]
_FallbackUiRenderer fallbackUIRenderer;

/// The name to use when the component's logger logs an error via [ErrorBoundaryComponent.componentDidCatch].
///
/// Not used if a custom [logger] is specified.
///
/// > Default: 'over_react.ErrorBoundary'
String loggerName;

/// Whether errors caught by this [ErrorBoundary] should be logged using a [Logger].
///
/// > Default: `true`
bool shouldLogErrors;

/// An optional custom logger instance that will be used to log errors caught by
/// this [ErrorBoundary] when [shouldLogErrors] is true.
Logger logger;
}

@State()
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: over_react
version: 2.5.3+dart1
version: 2.6.0+dart1
description: A library for building statically-typed React UI components using Dart.
homepage: https://github.com/Workiva/over_react/
authors:
Expand Down

0 comments on commit 83d2303

Please sign in to comment.