AI Subject, Description and Action taken support
This commit is contained in:
@@ -334,7 +334,7 @@ final tasksProvider = StreamProvider<List<Task>>((ref) {
|
||||
.cast<Map<String, dynamic>>()
|
||||
.map(Task.fromMap)
|
||||
.toList();
|
||||
final hash = tasks.fold('', (h, t) => '$h${t.id}');
|
||||
final hash = tasks.fold('', (h, t) => '$h${t.hashCode}');
|
||||
if (!controller.isClosed && hash != lastResultHash) {
|
||||
lastResultHash = hash;
|
||||
controller.add(tasks); // emit immediately – no debounce
|
||||
@@ -365,7 +365,7 @@ final tasksProvider = StreamProvider<List<Task>>((ref) {
|
||||
})
|
||||
.listen(
|
||||
(tasks) {
|
||||
final hash = tasks.fold('', (h, t) => '$h${t.id}');
|
||||
final hash = tasks.fold('', (h, t) => '$h${t.hashCode}');
|
||||
if (hash != lastResultHash) {
|
||||
lastResultHash = hash;
|
||||
emitDebounced(tasks);
|
||||
|
||||
Reference in New Issue
Block a user