implemented connectivity debouncing and refetch throttling for loadable state UI components
This commit is contained in:
@@ -55,7 +55,7 @@ class FilesSearchResults extends StatelessWidget {
|
||||
final showPrimaryLoading = isLoading && !hasContent;
|
||||
final showBackgroundLoading = isLoading && hasContent;
|
||||
final showErrorScreen = hasError && !hasContent && !isLoading;
|
||||
final showErrorBar = hasError && hasContent;
|
||||
final showErrorBar = hasError && hasContent && !isLoading;
|
||||
final showEmpty = !hasContent && !hasError && !isLoading;
|
||||
|
||||
final errorMessage = hasError ? errorToUserMessage(controller.serverError) : null;
|
||||
@@ -65,6 +65,7 @@ class FilesSearchResults extends StatelessWidget {
|
||||
LoadableStateErrorBar(
|
||||
visible: showErrorBar,
|
||||
hasContent: hasContent,
|
||||
loading: isLoading,
|
||||
message: errorMessage,
|
||||
),
|
||||
// Background loading sits *outside* the result Stack so the linear
|
||||
|
||||
Reference in New Issue
Block a user