-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListChange is not informative for ObservableList changes #490
Comments
How about a PR with the fix? |
Shure but 0001-fix-and-improve-ListChange-details-for-ObservableLis.zip |
You can fork the repository, apply the changes in your fork and submit a PR from your fork back to the original repository |
darkstarx
added a commit
to darkstarx/mobx.dart
that referenced
this issue
May 12, 2020
Ok, thanks, I did it |
darkstarx
added a commit
to darkstarx/mobx.dart
that referenced
this issue
May 12, 2020
darkstarx
added a commit
to darkstarx/mobx.dart
that referenced
this issue
May 13, 2020
darkstarx
added a commit
to darkstarx/mobx.dart
that referenced
this issue
May 15, 2020
darkstarx
added a commit
to darkstarx/mobx.dart
that referenced
this issue
May 15, 2020
darkstarx
added a commit
to darkstarx/mobx.dart
that referenced
this issue
May 15, 2020
darkstarx
added a commit
to darkstarx/mobx.dart
that referenced
this issue
May 15, 2020
pavanpodila
pushed a commit
that referenced
this issue
May 19, 2020
Fixed in master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's take the method
remove
and setterlength
of theObservableList
class:Both of them leads to observe identical wrong
ListChange
values, this is bug.So, fix setter
length
:Note: do not notify if the length not changes.
And fix
remove
method:Note: there is the same bug in the
removeAt
method:_notifyListUpdate(index, null, value == null ? null : [value]);
! Why you hides information about the number of removed items? This is bug!Note:
removeLast
contains the same bug.And what about
removeWhere
method?Are you seriously? How can I define the indexes of removed items? It does matter for flutter AnimatedList for instance.
And what about
replaceRange
method?Why you send me
ListChange
withOperationType.add
instead ofOperationType.update
? Were you lazy to extend_notifyListUpdate
arguments list with optionalOperationType type
?Also there is bug in
setRange
. Why you send me update with index and without a number of modified elements? How should I interpret the value of ListChange with nulls inadded
,removed
andoldValue
,newValue
properties?The text was updated successfully, but these errors were encountered: