From e5fee69cdcd131c805c0f0e072f4c2a6f25a555b Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 13 Dec 2017 11:31:06 -0500 Subject: [PATCH] ServiceList patch, bump to 1.1.0+3 --- CHANGELOG.md | 3 +++ lib/angel_client.dart | 10 ++++------ pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b8a0acf..167b834d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.1.0+3 +* `ServiceList` no longer ignores empty `index` events. + # 1.1.0+2 * Updated `ServiceList` to also fire on `index`. diff --git a/lib/angel_client.dart b/lib/angel_client.dart index 0464caf9..0d412330 100644 --- a/lib/angel_client.dart +++ b/lib/angel_client.dart @@ -158,12 +158,10 @@ class ServiceList extends DelegatingList { // Index _subs.add(service.onIndexed.listen((data) { var items = asPaginated == true ? data['data'] : data; - if (items.isNotEmpty) { - this - ..clear() - ..addAll(items); - _onChange.add(this); - } + this + ..clear() + ..addAll(items); + _onChange.add(this); })); // Created diff --git a/pubspec.yaml b/pubspec.yaml index 0b3adafb..6ee4138c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_client -version: 1.1.0+2 +version: 1.1.0+3 description: Client library for the Angel framework. author: Tobe O homepage: https://github.com/angel-dart/angel_client