Comments (3)
User error. Async events are hard.
from observable.
I take that back. listChanges
is giving me the info I want. From the docs, I thought I'd be getting the same events from the non-deprecated changes
.
/// A stream of summarized list changes, delivered asynchronously.
@Deprecated(''
'The `changes` stream will soon only emit ListChangeRecord; '
'either continue to use this getter until removed, or use the changes '
'stream with a `Stream.where` guard')
But no such luck....
I'm on 0.20.1
from observable.
This appears to be working:
test('replacing an item should trigger a change record', () async {
var list = new ObservableList<String>.from(['a', 'b', 'c', 'd', 'e']);
list.changes.listen(print);
list[4] = 'f';
await new Future.value();
});
Outputs:
[#<ListChangeRecord index: 4, removed: [e], addedCount: 1>]
Please re-open if I'm mistaken.
from observable.
Related Issues (20)
- Null safety HOT 3
- ObservableList's change not being listened to
- Update travis.yaml to only build 1.22?
- ListChangeRecord.added gives incorrect results HOT 2
- List change never firing, this prints nothing HOT 1
- please widen quiver dependency constraint HOT 1
- please support quiver 0.28.0 HOT 2
- ObservableSet.clear() does not trigger change notifications HOT 1
- Write a CHANGELOG for 0.21.0
- deliveryChanges does not work with Dart2 (with solution) HOT 12
- Dart 2 runtime errors in tests HOT 1
- Can we have some usage examples for this please? HOT 1
- Confusing doc / inconsistent implementation HOT 1
- Option to supply equality comparer in ObservableList
- how to use this? HOT 1
- ObservableList doesn't implement all ListBase methods HOT 2
- ObservableMap doesn't notify for all mutation methods HOT 1
- Implementation of cast methods allows mutation without notifications.
- Please update to support dart 2.9.0-5.0.dev HOT 1
- unused dart:async in observable.dart HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from observable.