FlutterError.reportError
. This also includes the stack trace, as all caught exceptions are now wrapped inside MobXCaughtException
.observer.dart
to separate out the StatelessObserverWidget
, StatefulObserverWidget
and the ObserverWidgetMixin
into their own files.Dart 2.7
as the min SDKmobx
dependency version to 0.4.0 in flutter_mobx
pubspec.yaml
Observer
in debug-mode with the correct line in StackTrace.Thanks to Scott Hyndman for all the contributions in this release.
Observer
-widgets: StatelessObserverWidget
and StatefulObserverWidget
Observer
widgets.debugAddStackTraceInObserverName
fieldauthors
field from pubspec.yaml
Thanks to Scott Hyndman and Remi Rousselet for the work done in this release!
setState()
call are now reported via FlutterError.reportError
so they don't go unnoticed by the user.pubspec.yaml
mobx 0.3.0
StackTrace.current
as the name for an Observer
, when not provided. This helps in quickly jumping to the location of the Observer
-usage during debugging.Observer
is relaying the exception caught during the tracking phase. This is done using the errorValue
field present on the reaction
instance.Observer
does not trap exceptions occurring during the build()
anymore. Previously, this used to be the case, which made it difficult to get proper stack traces.0.2.1
version of mobx
, which makes it compatible with the latest beta
/dev
/master
channels0.2.0
version of mobx
Observer
's builder
function. This was originally an AssertionError
, which was deemed to be too strong and caused apps to crash in debug mode.