Skip to content

Commit

Permalink
fix(client): Avoid progress indicator if data is available while loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Feb 26, 2024
1 parent 43b28bd commit a66dfbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class LoadingBuilder<T> extends StatelessWidget {
if (initialData != null) {
return builder(context, initialData as T);
}
if (snapshot.connectionState == ConnectionState.waiting) {
if (snapshot.connectionState == ConnectionState.waiting && snapshot.data == null) {
return const Center(child: CircularProgressIndicator());
}
return builder(context, snapshot.data as T);
Expand Down

0 comments on commit a66dfbd

Please sign in to comment.