- renamed
Observer.withChild
toObserver.withBuiltChild
`
Observer
is updated with the newObserver.withBuiltChild
constructor, so you can exclude child branch from the re-rendering. - @subzero911
In case if you useObserver.withBuiltChild
, you should provide two parameters:builderWithChild
andchild
:Observer.withBuiltChild( builderWithChild: (context, child) => FooWidget(foo: foo, bar: child), child: BarWidget(), // won't rebuild ),
- refactor: export
MultiReactionBuilder
fromflutter_mobx.dart
by @amondnet
- Patching to update the version in the library file
- feat: add
MultiReactionBuilder
widget by @amondnet
- Moved the version into its own file (
version.dart
) and exported from the main library file - Bringing the
version.dart
file in sync withpubspec.yaml
- Updated Changelog to change insecure link
- Fixed issue in showing issue tracker link on pub.dev
- Adding support for previous versions of Flutter SDK
- Package upgrades
- Improve
debugFindConstructingStackFrame
to let the message be less confusing to the reader - Allow disabling
No observables detected in the build method of Observer
- The
analyzer: ^3.0.0
in master branch is incompatible with Flutter stable - If
builder
ofObserver
errors, further errorLateInitializationError: Local 'built' has not been initialized.
will happen in addition to the actual error, reducing developer experience
- Introducing a ReactionBuilder widget that helps you create an inline reaction and eliminates the need
to have a wrapper-
StatefulWidget
that uses theinitState
to do the same. You can read more in the docs for ReactionBuilder.
- Package upgrades
- Minor cleanups
- Adopting the recommended linting for Dart
- Moved
analyzer
package to2.0.0
- @davidmartos96
- Moving from
mockito
tomocktail
- Full support for Null Safety
- Null safety support
- Reformatting for improving the pub.dev score
- Exceptions are reported more reliably with
FlutterError.reportError
. This also includes the stack trace, as all caught exceptions are now wrapped insideMobXCaughtException
. - Syncing versions with pubspec.yaml
- Ready for prime time!
- Fixing version resolution
- Refactoring
observer.dart
to separate out theStatelessObserverWidget
,StatefulObserverWidget
and theObserverWidgetMixin
into their own files.
- README updates
- Switching to Github Actions for all builds and publishing
- Upgraded to
Dart 2.7
as the min SDK
- Updated
mobx
dependency version to 0.4.0 influtter_mobx
pubspec.yaml
- Improved naming of
Observer
in debug-mode with the correct line in StackTrace.
Thanks to Scott Hyndman for all the contributions in this release.
- Added two new
Observer
-widgets:StatelessObserverWidget
andStatefulObserverWidget
- Improved the reporting of Flutter errors inside
Observer
widgets. - Exposing the
debugAddStackTraceInObserverName
field - Removing the deprecated
authors
field frompubspec.yaml
Thanks to Scott Hyndman and Remi Rousselet for the work done in this release!
- More documentation comments
- Errors that occur internal to the
setState()
call are now reported viaFlutterError.reportError
so they don't go unnoticed by the user. - Added a version constant that matches the
pubspec.yaml
- Adapting to the API changes in
mobx 0.3.0
- Formatting changes
- Using
StackTrace.current
as the name for anObserver
, when not provided. This helps in quickly jumping to the location of theObserver
-usage during debugging. - Docs update
Observer
is relaying the exception caught during the tracking phase. This is done using theerrorValue
field present on thereaction
instance.
- CHANGELOG updates which got missed out in previous versions
- The
Observer
does not trap exceptions occurring during thebuild()
anymore. Previously, this used to be the case, which made it difficult to get proper stack traces.
- README updates
- Upgrading to use the
0.2.1
version ofmobx
, which makes it compatible with the latestbeta
/dev
/master
channels
- Upgrading to use the
0.2.0
version ofmobx
- Warn when no observables are found in the
Observer
'sbuilder
function. This was originally anAssertionError
, which was deemed to be too strong and caused apps to crash in debug mode. - Updates to tests
- Updates to documentation
- Observer component that re-renders when reactive variables change.