From bdde6c422e71b9b7dba90de27fa14a2010f8ca3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemen=20Tu=C5=A1ar?= Date: Fri, 28 Jun 2024 01:32:13 +0100 Subject: [PATCH] feat: examples/alice_objectbox --- packages/alice_objectbox/lib/core/alice_core_objectbox.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/alice_objectbox/lib/core/alice_core_objectbox.dart b/packages/alice_objectbox/lib/core/alice_core_objectbox.dart index 8de1e79b..f1d5d044 100644 --- a/packages/alice_objectbox/lib/core/alice_core_objectbox.dart +++ b/packages/alice_objectbox/lib/core/alice_core_objectbox.dart @@ -1,3 +1,4 @@ +import 'dart:async'; import 'dart:math' show max; import 'package:alice/core/alice_core.dart'; @@ -31,7 +32,8 @@ class AliceCoreObjectBox extends AliceCore { .query() .order(CachedAliceHttpCall_.createdTime, flags: Order.descending) .watch(triggerImmediately: true) - .map((Query query) => query.find()); + .map((Query query) => query.find()) + .asBroadcastStream(); @override List getCalls() => _store.httpCalls.getAll();