Fix breaking stacks upon updating app

This commit is contained in:
franzap
2026-04-06 21:47:33 -03:00
parent 581d6e6e4c
commit 6fe73ed47d
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -72,7 +72,7 @@ class AppStackContainer extends HookConsumerWidget {
tags: {
'#f': {platform},
},
source: const LocalAndRemoteSource(relays: 'AppCatalog', stream: false),
source: const LocalAndRemoteSource(relays: 'AppCatalog'),
subscriptionPrefix: 'app-stack',
schemaFilter: appStackEventFilter,
),
@@ -81,7 +81,10 @@ class AppStackContainer extends HookConsumerWidget {
final allStacks = appStacksState.models.toList();
if (allStacks.isEmpty) {
return _buildSkeleton(context);
if (appStacksState is StorageLoading<AppStack>) {
return _buildSkeleton(context);
}
return const SizedBox.shrink();
}
final sortedStacks = _shuffleStacks(
+2 -2
View File
@@ -629,10 +629,10 @@ packages:
dependency: transitive
description:
name: logger
sha256: a7967e31b703831a893bbc3c3dd11db08126fe5f369b5c648a36f821979f5be3
sha256: "25aee487596a6257655a1e091ec2ae66bc30e7af663592cc3a27e6591e05035c"
url: "https://pub.dev"
source: hosted
version: "2.6.2"
version: "2.7.0"
logging:
dependency: transitive
description: