Skip to content

Commit 60579b7

Browse files
committed
skipLoadingOnReload
1 parent d9b6692 commit 60579b7

File tree

11 files changed

+14
-0
lines changed

11 files changed

+14
-0
lines changed

app/lib/features/bangs/presentation/screens/user.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class UserBangs extends HookConsumerWidget {
2323
return Scaffold(
2424
appBar: AppBar(title: const Text('User Bangs')),
2525
body: bangsAsync.when(
26+
skipLoadingOnReload: true,
2627
data: (bangs) {
2728
return ListView.builder(
2829
itemCount: bangs.length,

app/lib/features/geckoview/features/history/presentation/screens/history.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ class HistoryScreen extends HookConsumerWidget {
387387
),
388388
body: SafeArea(
389389
child: historyEntries.when(
390+
skipLoadingOnReload: true,
390391
data: (data) {
391392
return RefreshIndicator(
392393
onRefresh: () async {

app/lib/features/geckoview/features/search/presentation/widgets/search_modules/feed_search.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class FeedSearch extends HookConsumerWidget {
8383
SliverSkeletonizer(
8484
enabled: articlesAsync.isLoading,
8585
child: articlesAsync.when(
86+
skipLoadingOnReload: true,
8687
data: (articles) => SliverList.builder(
8788
itemCount: articles.length,
8889
itemBuilder: (context, index) {

app/lib/features/geckoview/features/tabs/presentation/screens/container_draft_suggestions.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ContainerDraftSuggestionsScreen extends HookConsumerWidget {
4040
child: Padding(
4141
padding: const EdgeInsets.symmetric(horizontal: 8.0),
4242
child: suggestionsAsync.when(
43+
skipLoadingOnReload: true,
4344
data: (suggestions) {
4445
final screenWidth = MediaQuery.of(context).size.width;
4546

@@ -83,6 +84,7 @@ class ContainerDraftSuggestionsScreen extends HookConsumerWidget {
8384
: AsyncValue.data(container.topic);
8485

8586
return topic.when(
87+
skipLoadingOnReload: true,
8688
data: (topic) => Text(topic ?? 'Untitled'),
8789
error: (error, stackTrace) {
8890
logger.e(

app/lib/features/geckoview/features/tabs/presentation/widgets/container_chips.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class ContainerChips extends HookConsumerWidget {
7171
);
7272

7373
return containersAsync.when(
74+
skipLoadingOnReload: true,
7475
data: (containers) {
7576
final availableContainers =
7677
containerFilter.mapNotNull(
@@ -161,6 +162,7 @@ class ContainerChips extends HookConsumerWidget {
161162
);
162163

163164
return suggestions.when(
165+
skipLoadingOnReload: true,
164166
data: (data) {
165167
if (data.isEmpty) {
166168
return const SizedBox.shrink();

app/lib/features/geckoview/features/tabs/presentation/widgets/container_title.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class ContainerTitle extends HookConsumerWidget {
4848
);
4949

5050
return topicAsync.when(
51+
skipLoadingOnReload: true,
5152
data: (data) =>
5253
data.mapNotNull(
5354
(name) => Text.rich(

app/lib/features/settings/presentation/screens/fingerprint_settings.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ class FingerprintSettingsScreen extends HookConsumerWidget {
6666
),
6767
body: SafeArea(
6868
child: settingsAsync.when(
69+
skipLoadingOnReload: true,
6970
data: (result) {
7071
return result.fold(
7172
(overrides) {
7273
return targetsAsync.when(
74+
skipLoadingOnReload: true,
7375
data: (targets) {
7476
return ListView.builder(
7577
itemCount: targets.length,

app/lib/features/settings/presentation/screens/web_engine_hardening_group.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class WebEngineHardeningGroupScreen extends HookConsumerWidget {
4444
return Scaffold(
4545
appBar: AppBar(title: Text(groupName)),
4646
body: settings.when(
47+
skipLoadingOnReload: true,
4748
data: (group) {
4849
return Column(
4950
children: [

app/lib/features/user/domain/presentation/dialogs/select_profile.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class SelectProfileDialog extends HookConsumerWidget {
1616
title: const Text('Manage Users'),
1717
scrollable: true,
1818
content: usersAsync.when(
19+
skipLoadingOnReload: true,
1920
data: (profiles) => Column(
2021
children: profiles.map((profile) {
2122
final isSelected = filesystem.selectedProfile == profile.uuidValue;

app/lib/features/user/domain/presentation/screens/profile_list.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ProfileListScreen extends HookConsumerWidget {
1717
return Scaffold(
1818
appBar: AppBar(title: const Text('Users')),
1919
body: usersAsync.when(
20+
skipLoadingOnReload: true,
2021
data: (profiles) => ListView.builder(
2122
itemCount: profiles.length,
2223
itemBuilder: (context, index) {

0 commit comments

Comments
 (0)