feat: Add debug logs for label loading

This commit is contained in:
Anton Stubenbord
2023-06-02 15:03:18 +02:00
parent 6896c13f3b
commit 29a0e73286
9 changed files with 108 additions and 61 deletions

View File

@@ -44,13 +44,15 @@ mixin DocumentPagingBlocMixin<State extends DocumentPagingState> on BlocBase<Sta
emit(state.copyWithPaged(isLoading: true));
final result = await api.findAll(filter.copyWith(page: 1));
emit(state.copyWithPaged(
filter: filter,
value: [result],
hasLoaded: true,
));
emit(
state.copyWithPaged(
filter: filter,
value: [result],
hasLoaded: true,
),
);
} finally {
await onFilterUpdated(filter);
// await onFilterUpdated(filter);
emit(state.copyWithPaged(isLoading: false));
}
}