skipLoadingOnReload
This commit is contained in:
@@ -387,6 +387,7 @@ class HistoryScreen extends HookConsumerWidget {
|
||||
),
|
||||
body: SafeArea(
|
||||
child: historyEntries.when(
|
||||
skipLoadingOnReload: true,
|
||||
data: (data) {
|
||||
return RefreshIndicator(
|
||||
onRefresh: () async {
|
||||
|
||||
+1
@@ -83,6 +83,7 @@ class FeedSearch extends HookConsumerWidget {
|
||||
SliverSkeletonizer(
|
||||
enabled: articlesAsync.isLoading,
|
||||
child: articlesAsync.when(
|
||||
skipLoadingOnReload: true,
|
||||
data: (articles) => SliverList.builder(
|
||||
itemCount: articles.length,
|
||||
itemBuilder: (context, index) {
|
||||
|
||||
+2
@@ -40,6 +40,7 @@ class ContainerDraftSuggestionsScreen extends HookConsumerWidget {
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||
child: suggestionsAsync.when(
|
||||
skipLoadingOnReload: true,
|
||||
data: (suggestions) {
|
||||
final screenWidth = MediaQuery.of(context).size.width;
|
||||
|
||||
@@ -83,6 +84,7 @@ class ContainerDraftSuggestionsScreen extends HookConsumerWidget {
|
||||
: AsyncValue.data(container.topic);
|
||||
|
||||
return topic.when(
|
||||
skipLoadingOnReload: true,
|
||||
data: (topic) => Text(topic ?? 'Untitled'),
|
||||
error: (error, stackTrace) {
|
||||
logger.e(
|
||||
|
||||
@@ -71,6 +71,7 @@ class ContainerChips extends HookConsumerWidget {
|
||||
);
|
||||
|
||||
return containersAsync.when(
|
||||
skipLoadingOnReload: true,
|
||||
data: (containers) {
|
||||
final availableContainers =
|
||||
containerFilter.mapNotNull(
|
||||
@@ -161,6 +162,7 @@ class ContainerChips extends HookConsumerWidget {
|
||||
);
|
||||
|
||||
return suggestions.when(
|
||||
skipLoadingOnReload: true,
|
||||
data: (data) {
|
||||
if (data.isEmpty) {
|
||||
return const SizedBox.shrink();
|
||||
|
||||
@@ -48,6 +48,7 @@ class ContainerTitle extends HookConsumerWidget {
|
||||
);
|
||||
|
||||
return topicAsync.when(
|
||||
skipLoadingOnReload: true,
|
||||
data: (data) =>
|
||||
data.mapNotNull(
|
||||
(name) => Text.rich(
|
||||
|
||||
Reference in New Issue
Block a user