Skip to content

Commit

Permalink
Merge branch 'master' into gh-844
Browse files Browse the repository at this point in the history
  • Loading branch information
amondnet authored Feb 14, 2023
2 parents f503a2e + 4400ea1 commit e64e87d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion mobx/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
- Fix Reaction lacks toString, so cannot see which reaction causes the error by [@fzyzcjy](https://github.com/fzyzcjy) in [#844](https://github.com/mobxjs/mobx.dart/pull/844)
- Add StackTrace to reactions in debug mode to easily spot which reaction it is by [@fzyzcjy](https://github.com/fzyzcjy) in [#844](https://github.com/mobxjs/mobx.dart/pull/844)

## 2.1.2 - 2.1.3
## 2.1.2 - 2.1.3+1

- Fix tests in dart 2.19 - [@amondnet](https://github.com/amondnet)
- Dart formatting fixes
- Refactor `atom.dart` to make code cleaner by [@fzyzcjy](https://github.com/fzyzcjy) in [#854](https://github.com/mobxjs/mobx.dart/pull/854)

## 2.1.1

Expand Down
6 changes: 1 addition & 5 deletions mobx/lib/src/core/atom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ class Atom with DebugCreationStack {
_addListener(_ListenerKind.onBecomeUnobserved, fn);

void Function() _addListener(_ListenerKind kind, void Function() fn) {
if (_observationListeners[kind] == null) {
_observationListeners[kind] = {}..add(fn);
} else {
_observationListeners[kind]!.add(fn);
}
(_observationListeners[kind] ??= {}).add(fn);

return () {
final listeners = _observationListeners[kind];
Expand Down
3 changes: 2 additions & 1 deletion mobx/lib/version.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Generated via set_version.dart. !!!DO NOT MODIFY BY HAND!!!

/// The current version as per `pubspec.yaml`.
const version = '2.1.4';
const version = '2.1.4';

0 comments on commit e64e87d

Please sign in to comment.